[]
The equality operator (==) compares two C1TextPointer operands and returns True if the C1TextPointer operands are equal; otherwise, it returns False.
public static bool operator ==(C1TextPointer markupPointer1, C1TextPointer markupPointer2)
Public Shared Operator =(markupPointer1 As C1TextPointer, markupPointer2 As C1TextPointer) As Boolean
| Type | Name | Description |
|---|---|---|
| C1TextPointer | markupPointer1 | The first text pointer to compare. |
| C1TextPointer | markupPointer2 | The second text pointer to compare. |
| Type | Description |
|---|---|
| bool | Returns True if two C1TextPointer operands are equal; otherwise, it returns False. |
The code below compares end position of range1 and start position of range2.
if (range1.End == range2.Start)
Console.WriteLine("The ranges are adjacent.");