SnapshotSpan Methods

Include Protected Members
Include Inherited Members

The SnapshotSpan type exposes the following members.

Methods

  Name Description
Public method Contains(Int32) Determines whether the position lies within the span.
Public method Contains(SnapshotPoint) Determines whether the specified SnapshotPoint lies within the span.
Public method Contains(SnapshotSpan) Determines whether the snapshot span falls completely within this span.
Public method Contains(Span) Determines whether the specified span falls completely within this span.
Public method Equals Determines whether two snapshot 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 method GetHashCode Serves as a hash function for this type. (Overrides ValueType.GetHashCode().)
Public method GetText The text contained by this snapshot span.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Intersection(SnapshotSpan) Calculates the intersection with the given SnapshotSpan.
Public method Intersection(Span) Calculates the intersection with the given span.
Public method IntersectsWith(SnapshotSpan) Determines whether the specified snapshot span intersects this span.
Public method IntersectsWith(Span) Determines whether the specified span intersects this span.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Overlap(SnapshotSpan) Gets the overlap with the given SnapshotSpan.
Public method Overlap(Span) Getss the overlap with the given span.
Public method OverlapsWith(SnapshotSpan) Determines whether another span overlaps this span.
Public method OverlapsWith(Span) Determines whether simpleSpan overlaps this span.
Public method ToString Converts this snapshot span to a string. (Overrides ValueType.ToString().)
Public method TranslateTo Translates this snapshot span to a different snapshot of the same ITextBuffer.

Top

See Also

Reference

SnapshotSpan Structure

Microsoft.VisualStudio.Text Namespace