VirtualSnapshotPoint Structure

 

Represents a SnapshotPoint that may have virtual spaces.

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

public struct VirtualSnapshotPoint : IComparable<VirtualSnapshotPoint>

NameDescription
System_CAPS_pubmethodVirtualSnapshotPoint(ITextSnapshot, Int32)

Initializes a new instance of a VirtualSnapshotPoint at the specified position in the specified snapshot, with zero virtual spaces.

System_CAPS_pubmethodVirtualSnapshotPoint(ITextSnapshotLine, Int32)

Initializes a new instance of a VirtualSnapshotPoint at the specified offset of the specified line, placing the point in virtual space if necessary.

System_CAPS_pubmethodVirtualSnapshotPoint(SnapshotPoint)

Initializes a new instance of a VirtualSnapshotPoint at the specified position, with zero virtual spaces.

System_CAPS_pubmethodVirtualSnapshotPoint(SnapshotPoint, Int32)

Initializes a new instance of a VirtualSnapshotPoint at the specified position, with the specified number of virtual spaces.

NameDescription
System_CAPS_pubpropertyIsInVirtualSpace

Determines whether the snapshot point has virtual spaces.

System_CAPS_pubpropertyPosition

Gets the position of the snapshot point.

System_CAPS_pubpropertyVirtualSpaces

Gets the number of virtual spaces.

NameDescription
System_CAPS_pubmethodCompareTo(VirtualSnapshotPoint)

Compares one VirtualSnapshotPoint to another.

System_CAPS_pubmethodEquals(Object)

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

System_CAPS_pubmethodGetHashCode()

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

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

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

System_CAPS_pubmethodTranslateTo(ITextSnapshot)

Translates this point to the specified snapshot.

System_CAPS_pubmethodTranslateTo(ITextSnapshot, PointTrackingMode)

Translates this point to the specified text snapshot with the specified tracking mode.

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(VirtualSnapshotPoint, VirtualSnapshotPoint)

Determines whether two VirtualSnapshotPoint objects are the same.

System_CAPS_puboperatorSystem_CAPS_staticGreaterThan(VirtualSnapshotPoint, VirtualSnapshotPoint)

Determines whether the position of the left point is greater than the position of the right point.

System_CAPS_puboperatorSystem_CAPS_staticGreaterThanOrEqual(VirtualSnapshotPoint, VirtualSnapshotPoint)

Determines whether the position of the left point is greater than or equal to the position of the right point.

System_CAPS_puboperatorSystem_CAPS_staticInequality(VirtualSnapshotPoint, VirtualSnapshotPoint)

Determines whether two VirtualSnapshotPoint objects are different.

System_CAPS_puboperatorSystem_CAPS_staticLessThan(VirtualSnapshotPoint, VirtualSnapshotPoint)

Determines whether the position of the left point is less than the position of the right point.

System_CAPS_puboperatorSystem_CAPS_staticLessThanOrEqual(VirtualSnapshotPoint, VirtualSnapshotPoint)

Determines whether the position of the left point is less than or equal to the position of the right point.

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: