SnapshotPoint Structure
An immutable text position in a particular text snapshot.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
| Name | Description | |
|---|---|---|
![]() | SnapshotPoint(ITextSnapshot, Int32) | Initializes a new instance of a SnapshotPoint with respect to a particular snapshot and position. |
| Name | Description | |
|---|---|---|
![]() | Position | Gets the position of the point. |
![]() | Snapshot | Gets the ITextSnapshot to which this snapshot point refers. |
| Name | Description | |
|---|---|---|
![]() | Add(Int32) | Creates a new snapshot point at the specified offset from this point. |
![]() | CompareTo(SnapshotPoint) | Determines whether this snapshot is the same as a second snapshot point. |
![]() | Difference(SnapshotPoint) | Calculates the offset between this snapshot point and another snapshot point. |
![]() | Equals(Object) | Determines whether this snapshot point is the same as a second snapshot point.(Overrides ValueType.Equals(Object).) |
![]() | GetChar() | Gets the character at the position of this snapshot point. |
![]() | GetContainingLine() | Gets the ITextSnapshotLine containing this snapshot point. |
![]() | GetHashCode() | Serves as a hash function for this type.(Overrides ValueType.GetHashCode().) |
![]() | GetType() | (Inherited from Object.) |
![]() | Subtract(Int32) | Creates a new snapshot point at the specified negative offset from this point. |
![]() | ToString() | Converts this snapshot point to a string.(Overrides ValueType.ToString().) |
![]() | TranslateTo(ITextSnapshot, PointTrackingMode) | Translates this snapshot point to a different snapshot of the same ITextBuffer. |
| Name | Description | |
|---|---|---|
![]() ![]() | Addition(SnapshotPoint, Int32) | Increments the position of a snapshot point. |
![]() ![]() | Equality(SnapshotPoint, SnapshotPoint) | Determines whether this snapshot point is the same as a second snapshot point. |
![]() ![]() | GreaterThan(SnapshotPoint, SnapshotPoint) | Determines whether the position of one snapshot point is greater than the position of a second snapshot point. |
![]() ![]() | Implicit(SnapshotPoint to Int32) | Implicitly converts the snapshot point to an integer equal to the position of the snapshot point in the snapshot. |
![]() ![]() | Inequality(SnapshotPoint, SnapshotPoint) | Determines whether this snapshot point is different from a second snapshot point. |
![]() ![]() | LessThan(SnapshotPoint, SnapshotPoint) | Determines whether the position of the left point is less than the position of the right point. |
![]() ![]() | Subtraction(SnapshotPoint, Int32) | Decrements the position of a snapshot point. |
![]() ![]() | Subtraction(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.



