RichTextBox for WPF | ComponentOne
C1.WPF.RichTextBox.Documents Namespace / C1TextPointer Class / Closest Method / Closest(Func<C1TextPointer,Boolean>,Func<C1TextPointer,C1TextPointer,Int32>) Method
The predicate that must be satisfied.
A distance function.

In This Topic
    Closest(Func<C1TextPointer,Boolean>,Func<C1TextPointer,C1TextPointer,Int32>) Method
    In This Topic
    Returns the closest position that satisfies a predicate.
    Syntax

    Parameters

    predicate
    The predicate that must be satisfied.
    distance
    A distance function.

    Return Value

    The closest position that satisfies the predicate.
    See Also