SnapshotPoint.CompareTo(SnapshotPoint) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether this snapshot is the same as a second snapshot point.
public:
virtual int CompareTo(Microsoft::VisualStudio::Text::SnapshotPoint other);
public int CompareTo (Microsoft.VisualStudio.Text.SnapshotPoint other);
abstract member CompareTo : Microsoft.VisualStudio.Text.SnapshotPoint -> int
override this.CompareTo : Microsoft.VisualStudio.Text.SnapshotPoint -> int
Public Function CompareTo (other As SnapshotPoint) As Integer
Parameters
- other
- SnapshotPoint
The snapshot point to which to compare.
Returns
A negative integer if the position of this snapshot point occurs before the second snapshot point, a positive integer if the position of this snapshot point occurs before the second snapshot point, and zero if the positions are the same.