Span Methods

Include Protected Members
Include Inherited Members

The Span type exposes the following members.

Methods

  Name Description
Public method Contains(Int32) Determines whether the position lies within the span.
Public method Contains(Span) Determines whether the specified span falls completely within this span.
Public method Equals Determines whether two spans are the same. (Overrides ValueType.Equals(Object).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic member FromBounds Initializes a new instance of a Span with the given start and end positions.
Public method GetHashCode Provides a hash function for the type. (Overrides ValueType.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Intersection Gets the intersection with the given span, or null if there is no intersection.
Public method IntersectsWith Determines whether span intersects this span.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Overlap Gets the overlap with the specified span.
Public method OverlapsWith Determines whether the specified span overlaps this span.
Public method ToString Provides a string representation of the span. (Overrides ValueType.ToString().)

Top

See Also

Reference

Span Structure

Microsoft.VisualStudio.Text Namespace