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
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
Llamar si los argumentos están fuera de alcance.
Properties
End
Obtenga el índice final.
public int End { get; }
Valor de la propiedad
Length
Obtenga la longitud.
public int Length { get; }
Valor de la propiedad
Start
Obtenga el índice de inicio.
public int Start { get; }
Valor de la propiedad
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
Combina el espacio de texto.
CompareTo(TextSpan)
Comparar con otros TextSpan
public int CompareTo(TextSpan other)
Parameters
other
TextSpan
El resto del texto.
Returns
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
El texto español.
CreateEmpty()
Crea el espacio de texto vacío.
public static TextSpan CreateEmpty()
Returns
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
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
El texto español.
Equals(TextSpan)
Comparar con otros TextSpan
public bool Equals(TextSpan other)
Parameters
other
TextSpan
El resto de textos
Returns
Si ambos TextSpan son iguales.
Equals(Objeto)
Comparar con otros objetos
public override bool Equals(object obj)
Parameters
obj
object
El otro objeto
Returns
Si ambos TextSpan son iguales.
GetHashCode()
Obtenga el hashcode
public override int GetHashCode()
Returns
El hashcode.
IsEmpty()
Volver cierto si la longitud = 0.
public bool IsEmpty()
Returns
El valor booleano.
ToString()
Encuentran a lo largo de la
public override string ToString()
Returns
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
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
Es cierto si la izquierda no es igual a la derecha.