SnapshotSpan Structure

 

An immutable text span in a particular text snapshot.

Namespace:   Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

public struct SnapshotSpan

NameDescription
System_CAPS_pubmethodSnapshotSpan(ITextSnapshot, Int32, Int32)

Initializes a new instance of a SnapshotSpan with the specified snapshot, start point, and length.

System_CAPS_pubmethodSnapshotSpan(ITextSnapshot, Span)

Initializes a new instance of a SnapshotSpan with the specified snapshot and span.

System_CAPS_pubmethodSnapshotSpan(SnapshotPoint, Int32)

Initializes a new instance of a SnapshotSpan from an existing SnapshotPoint and a specified length.

System_CAPS_pubmethodSnapshotSpan(SnapshotPoint, SnapshotPoint)

Initializes a new instance of a SnapshotSpan from two SnapshotPoint objects.

NameDescription
System_CAPS_pubpropertyEnd

Gets the end of the snapshot span.

System_CAPS_pubpropertyIsEmpty

Determines whether or not this span is empty.

System_CAPS_pubpropertyLength

Gets the length of the span, which is always non-negative.

System_CAPS_pubpropertySnapshot

The ITextSnapshot to which this snapshot span refers.

System_CAPS_pubpropertySpan

Gets the span covered by the snapshot span.

System_CAPS_pubpropertyStart

Gets the starting index of the snapshot span.

NameDescription
System_CAPS_pubmethodContains(Int32)

Determines whether the position lies within the span.

System_CAPS_pubmethodContains(SnapshotPoint)

Determines whether the specified SnapshotPoint lies within the span.

System_CAPS_pubmethodContains(SnapshotSpan)

Determines whether the snapshot span falls completely within this span.

System_CAPS_pubmethodContains(Span)

Determines whether the specified span falls completely within this span.

System_CAPS_pubmethodEquals(Object)

Determines whether two snapshot spans are the same.(Overrides ValueType.Equals(Object).)

System_CAPS_pubmethodGetHashCode()

Serves as a hash function for this type.(Overrides ValueType.GetHashCode().)

System_CAPS_pubmethodGetText()

The text contained by this snapshot span.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIntersection(SnapshotSpan)

Calculates the intersection with the given SnapshotSpan.

System_CAPS_pubmethodIntersection(Span)

Calculates the intersection with the given span.

System_CAPS_pubmethodIntersectsWith(SnapshotSpan)

Determines whether the specified snapshot span intersects this span.

System_CAPS_pubmethodIntersectsWith(Span)

Determines whether the specified span intersects this span.

System_CAPS_pubmethodOverlap(SnapshotSpan)

Gets the overlap with the given SnapshotSpan.

System_CAPS_pubmethodOverlap(Span)

Getss the overlap with the given span.

System_CAPS_pubmethodOverlapsWith(SnapshotSpan)

Determines whether another span overlaps this span.

System_CAPS_pubmethodOverlapsWith(Span)

Determines whether simpleSpan overlaps this span.

System_CAPS_pubmethodToString()

Converts this snapshot span to a string.(Overrides ValueType.ToString().)

System_CAPS_pubmethodTranslateTo(ITextSnapshot, SpanTrackingMode)

Translates this snapshot span to a different snapshot of the same ITextBuffer.

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(SnapshotSpan, SnapshotSpan)

Determines whether two snapshot spans are the same.

System_CAPS_puboperatorSystem_CAPS_staticImplicit(SnapshotSpan to Span)

Implicitly converts a snapshot span to a span.

System_CAPS_puboperatorSystem_CAPS_staticInequality(SnapshotSpan, SnapshotSpan)

Determines whether two snapshot spans are different.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: