Struct TextSpan

Struct TextSpan

Nombre del espacio: Aspose.Html.Toolkit.Markdown.Syntax.Text Colección: Aspose.HTML.dll (25.4.0)

Representa el espacio de texto.

[ComVisible(true)]
public struct TextSpan : IEquatable<textspan>, IComparable<textspan>

Implements

IEquatable ,y, IComparable

Miembros heredados

object.GetType() ,y, object.ToString() ,y, object.Equals(object?) ,y, object.Equals(object?, object?) ,y, object.ReferenceEquals(object?, object?) ,y, object.GetHashCode()

Constructors

TextSpan(El int, int)

Crea el TextSpan

public TextSpan(int start, int length)

Parameters

start int

El comienzo.

length int

La longitud.

Exceptions

ArgumentOutOfRangeException

Llamar si los argumentos están fuera de alcance.

Properties

End

Obtenga el índice final.

public int End { get; }

Valor de la propiedad

int

Length

Obtenga la longitud.

public int Length { get; }

Valor de la propiedad

int

Start

Obtenga el índice de inicio.

public int Start { get; }

Valor de la propiedad

int

Methods

Combine(El texto, el texto)

Combina las espadas de texto

public static TextSpan Combine(TextSpan left, TextSpan right)

Parameters

left TextSpan

El texto de la izquierda.

right TextSpan

El texto correcto.

Returns

TextSpan

Combina el espacio de texto.

CompareTo(TextSpan)

Comparar con otros TextSpan

public int CompareTo(TextSpan other)

Parameters

other TextSpan

El resto del texto.

Returns

int

La posición de inicio de la diferencia.

Create(El int, int)

Crea el TextSpan

public static TextSpan Create(int start, int length)

Parameters

start int

La posición de inicio.

length int

La longitud.

Returns

TextSpan

El texto español.

CreateEmpty()

Crea el espacio de texto vacío.

public static TextSpan CreateEmpty()

Returns

TextSpan

El texto español.

CreateEmpty(Int)

Crea TextSpan vacío desde la posición de inicio.

public static TextSpan CreateEmpty(int start)

Parameters

start int

La posición de inicio.

Returns

TextSpan

El texto español.

CreateFromStartEnd(El int, int)

Crea el TextSpan

public static TextSpan CreateFromStartEnd(int start, int end)

Parameters

start int

La posición de inicio.

end int

La posición final.

Returns

TextSpan

El texto español.

Equals(TextSpan)

Comparar con otros TextSpan

public bool Equals(TextSpan other)

Parameters

other TextSpan

El resto de textos

Returns

bool

Si ambos TextSpan son iguales.

Equals(Objeto)

Comparar con otros objetos

public override bool Equals(object obj)

Parameters

obj object

El otro objeto

Returns

bool

Si ambos TextSpan son iguales.

GetHashCode()

Obtenga el hashcode

public override int GetHashCode()

Returns

int

El hashcode.

IsEmpty()

Volver cierto si la longitud = 0.

public bool IsEmpty()

Returns

bool

El valor booleano.

ToString()

Encuentran a lo largo de la

public override string ToString()

Returns

string

El resultado de la línea.

Operators

El operador =(El texto, el texto)

Sobre el = = operador.

public static bool operator ==(TextSpan left, TextSpan right)

Parameters

left TextSpan

El texto de la izquierda.

right TextSpan

El texto correcto.

Returns

bool

Si la izquierda es igual a la derecha.

Operador !=(El texto, el texto)

¡Hasta el día! = Operador

public static bool operator !=(TextSpan left, TextSpan right)

Parameters

left TextSpan

El texto de la izquierda.

right TextSpan

El texto correcto.

Returns

bool

Es cierto si la izquierda no es igual a la derecha.

 Español