VirtualSnapshotPoint.CompareTo Method
Compares one VirtualSnapshotPoint to another.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Syntax
'Declaration
Public Function CompareTo ( _
other As VirtualSnapshotPoint _
) As Integer
public int CompareTo(
VirtualSnapshotPoint other
)
public:
virtual int CompareTo(
VirtualSnapshotPoint other
) sealed
abstract CompareTo :
other:VirtualSnapshotPoint -> int
override CompareTo :
other:VirtualSnapshotPoint -> int
public final function CompareTo(
other : VirtualSnapshotPoint
) : int
Parameters
other
Type: Microsoft.VisualStudio.Text.VirtualSnapshotPointThe second VirtualSnapshotPoint.
Return Value
Type: Int32
If the positions of the virtual snapshot points are different, returns the difference in positions, otherwise returns the difference in the number of virtual spaces.
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.