TextPosition.CompareTo(TextPosition) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.