Compares the values of two TextSpan structures for equality Syntax Parameters span1 The first structurespan2 The other structure Return Value true if the two instances are equal; otherwise false
Compares the relative values of two TextSpan structures Syntax Parameters span The first structureother The other structure Return Value true if the span is greater than other
Compares the values of two TextSpan structures for inequality Syntax Parameters span1 The first structurespan2 The other structure Return Value true if the two instances are not equal; otherwise false
Compares the relative values of two TextSpan structures Syntax Parameters span The first structureother The other structure Return Value true if the span is less than other
Returns a span that contains just the overlap between this span and another. Syntax Parameters span The span to overlap. Return Value A new TextSpan with the overlap or null if the spans dont overlap.
Indicates whether the span overlaps with the specified span. Syntax Parameters span The span to test. Return Value True if the spans overlap; otherwise False.
Returns the normalized start offset (read-only). Syntax
Returns the string representation of this object. Syntax
Instantiates a new TextSpan Syntax Parameters offset The zero-based offset into the documentlength The number of characters in the span (can be zero or negative) Exceptions Exception Description System.ArgumentOutOfRangeException If offset is less than 0 or the offset + length is less than 0.
Overload List