Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Recognition.Structure Namespace / Element Class / FindChild Method
The callback method used to test the elements.
Indicates whether to iterate over child elements' children.

In This Topic
    FindChild Method
    In This Topic
    Iterates over child elements of this Element or its children, and returns an Element that matches a criteria specified via a callback.
    Syntax
    'Declaration
     
    Public Function FindChild( _
       ByVal callback As System.Func(Of Element,Boolean), _
       Optional ByVal recursive As System.Boolean _
    ) As Element
    public Element FindChild( 
       System.Func<Element,bool> callback,
       System.bool recursive
    )

    Parameters

    callback
    The callback method used to test the elements.
    recursive
    Indicates whether to iterate over child elements' children.

    Return Value

    The first element for which the callback returned true, or null if no such element exists.
    See Also