TextSpanHelper Members
Include Protected Members
Include Inherited Members
A utility class that provides methods for manipulating and comparing instances of the TextSpan class, and also for validating positions.
The TextSpanHelper type exposes the following members.
Methods
Name | Description | |
---|---|---|
Clear | Sets the members of the specified span to an empty state. | |
ContainsExclusive | Determines whether the given position is contained in the given span, not including the start and end points. | |
ContainsInclusive | Determines whether the given position is in the span, including the start and end points. | |
EndsAfterEndOf | Determines whether the first span ends after the end of the second span. | |
EndsAfterStartOf | Determines whether the first span ends after the start of the second span. | |
EndsBeforeEndOf | Determines whether the first span ends before the end of the second span. | |
EndsBeforeStartOf | Determines whether the first span ends before the start of the second span. | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Intersects | Determines whether the first span intersects the second span. | |
IsAfterEndOf | Determines whether the given position occurs after the end of the given span. | |
IsBeforeStartOf | Determines whether the given position occurs before the start of the given span. | |
IsEmbedded | Determines whether the first span is wholly contained in the second span. | |
IsEmpty | Determines whether the given span is empty. | |
IsPositive | Determines whether the start of the given span occurs before the end of the span. | |
IsSameSpan | Determines whether two spans are the same. | |
MakePositive | Makes the given span positive. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Merge | Merges the two given spans to create a new span. | |
Normalize | Pins the ends of the given span to the actual line lengths in the given text buffer. | |
StartsAfterEndOf | Determines whether the first span starts after the end of the second span. | |
StartsAfterStartOf | Determines whether the first span starts after the start of the second span. | |
StartsBeforeEndOf | Determines whether the first span starts before the end of the second span. | |
StartsBeforeStartOf | Determines whether the first span starts before the start of the second span. | |
ToString | Returns a String that represents the current Object. (Inherited from Object.) | |
ValidCoord | Determines whether the given position is valid for the given source buffer. | |
ValidSpan | Determines whether the given span lies within the given source buffer. |
Top