SnapshotPoint Structure

 

An immutable text position in a particular text snapshot.

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

public struct SnapshotPoint : IComparable<SnapshotPoint>

NameDescription
System_CAPS_pubmethodSnapshotPoint(ITextSnapshot, Int32)

Initializes a new instance of a SnapshotPoint with respect to a particular snapshot and position.

NameDescription
System_CAPS_pubpropertyPosition

Gets the position of the point.

System_CAPS_pubpropertySnapshot

Gets the ITextSnapshot to which this snapshot point refers.

NameDescription
System_CAPS_pubmethodAdd(Int32)

Creates a new snapshot point at the specified offset from this point.

System_CAPS_pubmethodCompareTo(SnapshotPoint)

Determines whether this snapshot is the same as a second snapshot point.

System_CAPS_pubmethodDifference(SnapshotPoint)

Calculates the offset between this snapshot point and another snapshot point.

System_CAPS_pubmethodEquals(Object)

Determines whether this snapshot point is the same as a second snapshot point.(Overrides ValueType.Equals(Object).)

System_CAPS_pubmethodGetChar()

Gets the character at the position of this snapshot point.

System_CAPS_pubmethodGetContainingLine()

Gets the ITextSnapshotLine containing this snapshot point.

System_CAPS_pubmethodGetHashCode()

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

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodSubtract(Int32)

Creates a new snapshot point at the specified negative offset from this point.

System_CAPS_pubmethodToString()

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

System_CAPS_pubmethodTranslateTo(ITextSnapshot, PointTrackingMode)

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

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticAddition(SnapshotPoint, Int32)

Increments the position of a snapshot point.

System_CAPS_puboperatorSystem_CAPS_staticEquality(SnapshotPoint, SnapshotPoint)

Determines whether this snapshot point is the same as a second snapshot point.

System_CAPS_puboperatorSystem_CAPS_staticGreaterThan(SnapshotPoint, SnapshotPoint)

Determines whether the position of one snapshot point is greater than the position of a second snapshot point.

System_CAPS_puboperatorSystem_CAPS_staticImplicit(SnapshotPoint to Int32)

Implicitly converts the snapshot point to an integer equal to the position of the snapshot point in the snapshot.

System_CAPS_puboperatorSystem_CAPS_staticInequality(SnapshotPoint, SnapshotPoint)

Determines whether this snapshot point is different from a second snapshot point.

System_CAPS_puboperatorSystem_CAPS_staticLessThan(SnapshotPoint, SnapshotPoint)

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

System_CAPS_puboperatorSystem_CAPS_staticSubtraction(SnapshotPoint, Int32)

Decrements the position of a snapshot point.

System_CAPS_puboperatorSystem_CAPS_staticSubtraction(SnapshotPoint, SnapshotPoint)

Calculates the offset between two SnapshotPoint objects.

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: