SnapshotPoint.CompareTo Method
Determines whether this snapshot is the same as a second snapshot point.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Declaration
Public Function CompareTo ( _
other As SnapshotPoint _
) As Integer
public int CompareTo(
SnapshotPoint other
)
public:
virtual int CompareTo(
SnapshotPoint other
) sealed
abstract CompareTo :
other:SnapshotPoint -> int
override CompareTo :
other:SnapshotPoint -> int
public final function CompareTo(
other : SnapshotPoint
) : int
Parameters
other
Type: Microsoft.VisualStudio.Text.SnapshotPointThe second snapshot point.
Return Value
Type: Int32
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
IComparable.CompareTo(UTP)
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.