Share via


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

Return Value

Type: System.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<T>.CompareTo(T)

.NET Framework Security

See Also

Reference

VirtualSnapshotPoint Structure

Microsoft.VisualStudio.Text Namespace