TextSpan Struct

TextSpan structure

Represents the text span.

public struct TextSpan : IComparable<TextSpan>, IEquatable<TextSpan>

Constructors

NameDescription
TextSpan(int, int)Create the TextSpan

Properties

NameDescription
getEnd Get the End index.
getLength Get the length.
getStart Get the Start index.

Methods

NameDescription
static Combine(TextSpan, TextSpan)Combines the text spans
static Create(int, int)Create the TextSpan
static CreateEmpty()Create the empty text span.
static CreateEmpty(int)Create empty TextSpan from start position.
static CreateFromStartEnd(int, int)Create the TextSpan
compareTo(TextSpan)Compare with other TextSpan
equals(object)Compare with other object
equals(TextSpan)Compare with other TextSpan
getHashCode()Get the HashCode
isEmpty()Return true if length ==0.
toString()Get ToString() override
operator ==
operator !=

See Also