Version

Search Results

Equality Operator (TextSpan)

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

Greater Than Operator (TextSpan)

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

Inequality Operator (TextSpan)

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

Less Than Operator (TextSpan)

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

Overlap Method (TextSpan)

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.

OverlapsWith Method (TextSpan)

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.

Start Property (TextSpan)

Returns the normalized start offset (read-only). Syntax

ToString Method (TextSpan)

Returns the string representation of this object. Syntax

TextSpan Constructor

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.

TextSpan Constructor

Overload List