ComponentOne RichTextBox for UWP
CompareTo Method

C1.Xaml.RichTextBox.Documents Namespace > C1TextPointer Class : CompareTo Method
The C1TextPointer to compare with.
Compares positions of this C1TextPointer with another C1TextPointer.
Syntax
'Declaration
 
Public Function CompareTo( _
   ByVal other As C1TextPointer _
) As System.Integer
public System.int CompareTo( 
   C1TextPointer other
)

Parameters

other
The C1TextPointer to compare with.

Return Value

Less than zero: this C1TextPointer precedes position. Zero: this C1TextPointer is at the same location as position. Greater than zero: this C1TextPointer follows position.
Exceptions
ExceptionDescription
Throws ArgumentException if position does not belong to the same text container as this C1TextPointer.
See Also

Reference

C1TextPointer Class
C1TextPointer Members