RichTextBox for WPF | ComponentOne
C1.WPF.RichTextBox.Documents Namespace / C1TextPointer Class / Offset Property

In This Topic
    Offset Property (C1TextPointer)
    In This Topic
    The offset inside of C1TextPointer.Element where the C1TextPointer is positioned.
    Syntax
    'Declaration
     
    
    Public ReadOnly Property Offset As Integer
    public int Offset {get;}
    Remarks

    If C1TextPointer.Element has children then the C1TextPointer is positioned before the child whose index equals Offset, or after the last child if Offset equals the number of children.

    If C1TextPointer.Element doesn't have children, then the meaning of Offset depends on the type of C1TextPointer.Element. For example, in C1Run it indicates a position inside the text.

    See Also