Compares positions of this C1TextPointer with another C1TextPointer.

Namespace:  C1.Silverlight.RichTextBox.Documents
Assembly:  C1.Silverlight.RichTextBox (in C1.Silverlight.RichTextBox.dll)

Syntax

C#
public int CompareTo(
	C1TextPointer other
)
Visual Basic
Public Function CompareTo ( _
	other As C1TextPointer _
) As Integer

Parameters

other
Type: C1.Silverlight.RichTextBox.Documents..::..C1TextPointer
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.

Implements

IComparable<(Of <(<'T>)>)>..::..CompareTo(T)

Exceptions

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

See Also