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

In This Topic
    Closest(Func<C1TextPointer,Boolean>,Func<C1TextPointer,C1TextPointer,Int32>,C1TextElement) 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.
    range
    The range to be searched in.

    Return Value

    The closest position that satisfies the predicate.
    See Also