Freigeben über


TextPosition.CompareTo(TextPosition) Method

Definition

Determines whether this snapshot is the same as a second snapshot position.

public int CompareTo (Microsoft.VisualStudio.Extensibility.Editor.TextPosition other);
abstract member CompareTo : Microsoft.VisualStudio.Extensibility.Editor.TextPosition -> int
override this.CompareTo : Microsoft.VisualStudio.Extensibility.Editor.TextPosition -> int
Public Function CompareTo (other As TextPosition) As Integer

Parameters

other
TextPosition

The snapshot position to which to compare.

Returns

A negative integer if the position of this snapshot position occurs before the second snapshot position, a positive integer if the position of this snapshot position occurs before the second snapshot position, and zero if the positions are the same.

Implements

Applies to