VirtualSnapshotSpan Structure

 

Represents the range between two VirtualSnapshotPoint objects.

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

public struct VirtualSnapshotSpan

NameDescription
System_CAPS_pubmethodVirtualSnapshotSpan(SnapshotSpan)

Initializes a new instance of a VirtualSnapshotSpan in the specified snapshot span, with no virtual spaces.

System_CAPS_pubmethodVirtualSnapshotSpan(VirtualSnapshotPoint, VirtualSnapshotPoint)

Initializes a new instance of a VirtualSnapshotSpan from the specified start and end points.

NameDescription
System_CAPS_pubpropertyEnd

Gets the ending virtual point.

System_CAPS_pubpropertyIsEmpty

Determines whether the start and end points are in the same place.

System_CAPS_pubpropertyIsInVirtualSpace

Determines whether the start or end points are in virtual space.

System_CAPS_pubpropertyLength

The length of this span, taking into account virtual space.

System_CAPS_pubpropertySnapshot

The ITextSnapshot to which this snapshot span refers.

System_CAPS_pubpropertySnapshotSpan

Gets the non-virtual snapshot span to which this span corresponds.

System_CAPS_pubpropertyStart

Gets the starting virtual point.

NameDescription
System_CAPS_pubmethodContains(VirtualSnapshotPoint)

Determines whether or not the given virtual point is contained within this virtual span.

System_CAPS_pubmethodContains(VirtualSnapshotSpan)

Determines whether the specified virtual span falls completely within this virtual span.

System_CAPS_pubmethodEquals(Object)

Determines whether two VirtualSnapshotSpan objects are the same.(Overrides ValueType.Equals(Object).)

System_CAPS_pubmethodGetHashCode()

Gets the hash code for the object.(Overrides ValueType.GetHashCode().)

System_CAPS_pubmethodGetText()

The text contained by this virtual snapshot span.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIntersection(VirtualSnapshotSpan)

Returns the intersection with the given virtual span.

System_CAPS_pubmethodIntersectsWith(VirtualSnapshotSpan)

Determines whether the specified virtual span intersects this span.

System_CAPS_pubmethodOverlap(VirtualSnapshotSpan)

Returns the overlap with the specified virtual span.

System_CAPS_pubmethodOverlapsWith(VirtualSnapshotSpan)

Determines whether the specified span overlaps this span.

System_CAPS_pubmethodToString()

Converts the object to a string.(Overrides ValueType.ToString().)

System_CAPS_pubmethodTranslateTo(ITextSnapshot)

Translates this span to the specified snapshot.

System_CAPS_pubmethodTranslateTo(ITextSnapshot, SpanTrackingMode)

Translates this span to the specified snapshot with the given tracking mode.

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(VirtualSnapshotSpan, VirtualSnapshotSpan)

Determines whether two VirtualSnapshotSpan objects are the same.

System_CAPS_puboperatorSystem_CAPS_staticInequality(VirtualSnapshotSpan, VirtualSnapshotSpan)

Determines whether two VirtualSnapshotSpan objects are different.

Virtual spaces are "extra" spaces at the end of a line that do not add to the length of the line. You can enable or disable virtual spaces in Visual Studio. When virtual spaces are disabled, pressing on the right arrow key at the end of a line causes the caret to move to the beginning of the next line. When virtual spaces are enabled, pressing on the right arrow key at the end of a line causes the caret to move forward on the same line.

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: