Represents a range.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Thetype exposes the following members.
|Contains(Int32)||Determines whether the position lies within the span.|
|Contains(Span)||Determines whether the specified span falls completely within this span.|
|Equals||Determines whether two spans are the same. (Overrides ValueType.Equals(Object).)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|FromBounds||Initializes a new instance of a with the given start and end positions.|
|GetHashCode||Provides a hash function for the type. (Overrides ValueType.GetHashCode().)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|Intersection||Gets the intersection with the given span, or null if there is no intersection.|
|IntersectsWith||Determines whether span intersects this span.|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|Overlap||Gets the overlap with the specified span.|
|OverlapsWith||Determines whether the specified span overlaps this span.|
|ToString||Provides a string representation of the span. (Overrides ValueType.ToString().)|
This structure represents an immutable integer interval that describes a range of values, from Start to End. It is closed on the left and open on the right: [Start .. End). In the context of an ITextSnapshot it represents a span of text, but the span structure itself is independent of any particular text buffer or snapshot.