'Declaration
Public Overloads Function GetOffsetToPosition( _ ByVal position As C1TextPointer, _ ByVal tagFilter As Predicate(Of Tag) _ ) As Integer
public int GetOffsetToPosition( C1TextPointer position, Predicate<Tag> tagFilter )
Parameters
- position
- A C1TextPointer that specifies a position to find the distance (in symbols) to.
- tagFilter
- 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.
Return Value
The relative number of symbols between the current C1TextPointer and position. A negative value indicates that the current C1TextPointer follows the position specified by position, 0 indicates that the positions are equal, and a positive value indicates that the current C1TextPointer precedes the position specified by position.