[]
        
(Showing Draft Content)

C1.Win.C1Editor.C1TextPointer.op_Equality

operator == Operator

operator ==(C1TextPointer, C1TextPointer)

The equality operator (==) compares two C1TextPointer operands and returns True if the C1TextPointer operands are equal; otherwise, it returns False.

Declaration
public static bool operator ==(C1TextPointer markupPointer1, C1TextPointer markupPointer2)
Parameters
Type Name Description
C1TextPointer markupPointer1

The first text pointer to compare.

C1TextPointer markupPointer2

The second text pointer to compare.

Returns
Type Description
bool

Returns True if two C1TextPointer operands are equal; otherwise, it returns False.

Examples

The code below compares end position of range1 and start position of range2.

if (range1.End == range2.Start)
Console.WriteLine("The ranges are adjacent.");