Returns the count of symbols between this C1TextPointer and a second specified C1TextPointer.
Namespace:
C1.Silverlight.RichTextBox.DocumentsAssembly: C1.Silverlight.RichTextBox (in C1.Silverlight.RichTextBox.dll)
Syntax
C# |
---|
public int GetOffsetToPosition( C1TextPointer position, Predicate<Tag> tagFilter ) |
Visual Basic |
---|
Public Function GetOffsetToPosition ( _ position As C1TextPointer, _ tagFilter As Predicate(Of Tag) _ ) As Integer |
Parameters
- position
- Type: C1.Silverlight.RichTextBox.Documents..::..C1TextPointer
A C1TextPointer that specifies a position to find the distance (in symbols) to.
- tagFilter
- Type: System..::..Predicate<(Of <(<'Tag>)>)>
A predicate that can be called to check if a Tag should count as offset. The predicate should return true iff the tag doesn't count. Can be null, which means no filter.