Struct TextSpan
Le nom : Aspose.Html.Toolkit.Markdown.Syntax.Text Assemblaggio: Aspose.HTML.dll (25.4.0)
Il représente le texte espace.
[ComVisible(true)]
public struct TextSpan : IEquatable<textspan>, IComparable<textspan>
Implements
I membri ereditari
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
TextSpan(int, int)
Créer le TextSpan
public TextSpan(int start, int length)
Parameters
start
int
Il inizio .
length
int
La lunghezza .
Exceptions
Jeter si les arguments sont hors de gamme.
Properties
End
Découvrez l’indice de fin.
public int End { get; }
Valore di proprietà
Length
Obtenez la longueur.
public int Length { get; }
Valore di proprietà
Start
Découvrez l’indice Start.
public int Start { get; }
Valore di proprietà
Methods
Combine(Étiquette, TextSpan)
Combine les spans de texte
public static TextSpan Combine(TextSpan left, TextSpan right)
Parameters
left
TextSpan
Le texte à gauche.
right
TextSpan
Le bon texte espace.
Returns
Combinaison du texte espace.
CompareTo(TextSpan)
Comparer avec d’autres textes
public int CompareTo(TextSpan other)
Parameters
other
TextSpan
Le reste du texte.
Returns
La position de départ de la différence.
Create(int, int)
Créer le TextSpan
public static TextSpan Create(int start, int length)
Parameters
start
int
La position de départ.
length
int
La lunghezza .
Returns
Le texte espagnol.
CreateEmpty()
Créez l’espace texte vide.
public static TextSpan CreateEmpty()
Returns
Le texte espagnol.
CreateEmpty(int)
Créez TextSpan vide de la position de départ.
public static TextSpan CreateEmpty(int start)
Parameters
start
int
La position de départ.
Returns
Le texte espagnol.
CreateFromStartEnd(int, int)
Créer le TextSpan
public static TextSpan CreateFromStartEnd(int start, int end)
Parameters
start
int
La position de départ.
end
int
La position finale.
Returns
Le texte espagnol.
Equals(TextSpan)
Comparer avec d’autres textes
public bool Equals(TextSpan other)
Parameters
other
TextSpan
Les autres textes
Returns
Les deux textes sont égaux.
Equals(Objets)
Comparer avec d’autres objets
public override bool Equals(object obj)
Parameters
obj
object
L’autre objet
Returns
Les deux textes sont égaux.
GetHashCode()
Obtenez le hashcode
public override int GetHashCode()
Returns
Le code hash.
IsEmpty()
Retourner vrai si la longueur = 0.
public bool IsEmpty()
Returns
Il valore booleano.
ToString()
Résumé de ToString() Override
public override string ToString()
Returns
Le résultat de la chaîne.
Operators
L’opérateur =(Étiquette, TextSpan)
Réservez le = opérateur.
public static bool operator ==(TextSpan left, TextSpan right)
Parameters
left
TextSpan
Le texte à gauche.
right
TextSpan
Le bon texte espace.
Returns
Il est vrai si la gauche est égale à la droite.
opérateur !=(Étiquette, TextSpan)
Résumé : L’opérateur !
public static bool operator !=(TextSpan left, TextSpan right)
Parameters
left
TextSpan
Le texte à gauche.
right
TextSpan
Le bon texte espace.
Returns
Si la gauche n’est pas égale à la droite.