ComponentOne RichTextBox for WPF
C1.WPF.RichTextBox.Documents Namespace / C1TextPointer Class / CompareTo Method
The C1TextPointer to compare with.

In This Topic
    CompareTo Method (C1TextPointer)
    In This Topic
    Compares positions of this C1TextPointer with another C1TextPointer.
    Syntax
    'Declaration
     
    
    Public Function CompareTo( _
       ByVal other As C1TextPointer _
    ) As Integer
    public 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