Returns the position at an offset of the current position, optionally not counting some positions.
Namespace:
C1.Phone.RichTextBox.DocumentsAssembly: C1.Phone.RichTextBox (in C1.Phone.RichTextBox.dll)
Syntax
C# |
---|
public C1TextPointer GetPositionAtOffset( int offset, Predicate<Tag> tagFilter ) |
Visual Basic |
---|
Public Function GetPositionAtOffset ( _ offset As Integer, _ tagFilter As Predicate(Of Tag) _ ) As C1TextPointer |
Parameters
- offset
- Type: System..::..Int32
The offset.
Return Value
A new position at the offset indicated, or null if the offset goes off the document.
Remarks
This method can be used to linearly traverse a C1Document tree.
Start and end tags in each C1TextElement count as items for the traverse, for instance if the position is in an element with children, a position at offset 1 will be the ContentStart of the C1TextElement where this C1TextPointer is positioned.
If this C1TextPointer is positioned in a C1Run then it traverses the text of the C1Run.