Editor for WinForms | ComponentOne
C1.Win.C1Editor.4.8 Assembly / C1.Win.C1Editor Namespace / C1TextPointer Class / Equality Operator
The first text pointer to compare.
The second text pointer to compare.
Example

In This Topic
    Equality Operator
    In This Topic
    The equality operator (==) compares two C1TextPointer operands and returns True if the C1TextPointer operands are equal; otherwise, it returns False.
    Syntax
    'Declaration
     
    Public Operator =( _
       ByVal markupPointer1 As C1TextPointer, _
       ByVal markupPointer2 As C1TextPointer _
    ) As System.Boolean
    public System.bool operator ==( 
       C1TextPointer markupPointer1,
       C1TextPointer markupPointer2
    )

    Parameters

    markupPointer1
    The first text pointer to compare.
    markupPointer2
    The second text pointer to compare.

    Return Value

    Returns True if two C1TextPointer operands are equal; otherwise, it returns False.
    Example
    The code below compares end position of range1 and start position of range2.
    if (range1.End == range2.Start)
        Console.WriteLine("The ranges are adjacent.");
    See Also