다음을 통해 공유


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
Public methodStatic member Clear Sets the members of the specified span to an empty state.
Public methodStatic member ContainsExclusive Determines whether the given position is contained in the given span, not including the start and end points.
Public methodStatic member ContainsInclusive Determines whether the given position is in the span, including the start and end points.
Public methodStatic member EndsAfterEndOf Determines whether the first span ends after the end of the second span.
Public methodStatic member EndsAfterStartOf Determines whether the first span ends after the start of the second span.
Public methodStatic member EndsBeforeEndOf Determines whether the first span ends before the end of the second span.
Public methodStatic member EndsBeforeStartOf Determines whether the first span ends before the start of the second span.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method 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.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public methodStatic member Intersects Determines whether the first span intersects the second span.
Public methodStatic member IsAfterEndOf Determines whether the given position occurs after the end of the given span.
Public methodStatic member IsBeforeStartOf Determines whether the given position occurs before the start of the given span.
Public methodStatic member IsEmbedded Determines whether the first span is wholly contained in the second span.
Public methodStatic member IsEmpty Determines whether the given span is empty.
Public methodStatic member IsPositive Determines whether the start of the given span occurs before the end of the span.
Public methodStatic member IsSameSpan Determines whether two spans are the same.
Public methodStatic member MakePositive Makes the given span positive.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic member Merge Merges the two given spans to create a new span.
Public methodStatic member Normalize Pins the ends of the given span to the actual line lengths in the given text buffer.
Public methodStatic member StartsAfterEndOf Determines whether the first span starts after the end of the second span.
Public methodStatic member StartsAfterStartOf Determines whether the first span starts after the start of the second span.
Public methodStatic member StartsBeforeEndOf Determines whether the first span starts before the end of the second span.
Public methodStatic member StartsBeforeStartOf Determines whether the first span starts before the start of the second span.
Public method ToString Returns a String that represents the current Object. (Inherited from Object.)
Public methodStatic member ValidCoord Determines whether the given position is valid for the given source buffer.
Public methodStatic member ValidSpan Determines whether the given span lies within the given source buffer.

Top

See Also

Reference

TextSpanHelper Class

Microsoft.VisualStudio.Package Namespace