Struct TextSpan

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

IEquatable , IComparable

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

ArgumentOutOfRangeException

Jeter si les arguments sont hors de gamme.

Properties

End

Découvrez l’indice de fin.

public int End { get; }

Valore di proprietà

int

Length

Obtenez la longueur.

public int Length { get; }

Valore di proprietà

int

Start

Découvrez l’indice Start.

public int Start { get; }

Valore di proprietà

int

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

TextSpan

Combinaison du texte espace.

CompareTo(TextSpan)

Comparer avec d’autres textes

public int CompareTo(TextSpan other)

Parameters

other TextSpan

Le reste du texte.

Returns

int

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

TextSpan

Le texte espagnol.

CreateEmpty()

Créez l’espace texte vide.

public static TextSpan CreateEmpty()

Returns

TextSpan

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

TextSpan

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

TextSpan

Le texte espagnol.

Equals(TextSpan)

Comparer avec d’autres textes

public bool Equals(TextSpan other)

Parameters

other TextSpan

Les autres textes

Returns

bool

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

bool

Les deux textes sont égaux.

GetHashCode()

Obtenez le hashcode

public override int GetHashCode()

Returns

int

Le code hash.

IsEmpty()

Retourner vrai si la longueur = 0.

public bool IsEmpty()

Returns

bool

Il valore booleano.

ToString()

Résumé de ToString() Override

public override string ToString()

Returns

string

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

bool

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

bool

Si la gauche n’est pas égale à la droite.

 Français