Compartilhar via


SnapshotPoint.CompareTo(SnapshotPoint) Method

Definition

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.

Implements

Applies to