[]
        
(Showing Draft Content)

C1.WPF.RichTextBox.Documents.C1TextPointer.CompareTo

CompareTo Method

CompareTo(C1TextPointer)

Compares positions of this C1TextPointer with another C1TextPointer.

Declaration
public int CompareTo(C1TextPointer other)
Parameters
Type Name Description
C1TextPointer other

The C1TextPointer to compare with.

Returns
Type Description
int

Less than zero: this C1TextPointer precedes position. Zero: this C1TextPointer is at the same location as position. Greater than zero: this C1TextPointer follows position.

Implements
Exceptions
Type Condition
ArgumentException

Throws ArgumentException if position does not belong to the same text container as this C1TextPointer.