Version

TextSpan Structure Members

The following tables list the members exposed by TextSpan.

Public Constructors
 NameDescription
Public ConstructorTextSpan ConstructorInstantiates a new TextSpan  
Public Fields
 NameDescription
Public Fieldstatic (Shared in Visual Basic)AllReturns a span that represents all the text.  
Public Properties
 NameDescription
Public PropertyEndReturns the normalized end offset (read-only).  
Public PropertyLengthReturns the length of the text span (read-only).  
Public PropertyOffsetReturns the zero-based offset from the beginning of the document (read-only).  
Public PropertyStartReturns the normalized start offset (read-only).  
Public Methods
 NameDescription
Public MethodContainsOverloaded. Determines if a span is completely contained within this span.  
Public MethodEqualsOverloaded. Determines if a structure is equatable to this one.  
Public MethodGetHashCodeReturns the hash code of the structure.  
Public MethodIntersectionReturns a span that contains just the intersect between this span and another.  
Public MethodIntersectsWithIndicates whether the span intersects with the specified span.  
Public MethodOverlapReturns a span that contains just the overlap between this span and another.  
Public MethodOverlapsWithIndicates whether the span overlaps with the specified span.  
Public MethodToStringReturns the string representation of this object.  
Public Operators
public Operator Equality Compares the values of two TextSpan structures for equality
public Operator Greater Than Compares the relative values of two TextSpan structures
public Operator Inequality Compares the values of two TextSpan structures for inequality
public Operator Less Than Compares the relative values of two TextSpan structures
See Also