[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Recognition.Structure.Element.FindChild

FindChild Method

FindChild(Func<Element, bool>, bool)

Iterates over child elements of this Element or its children, and returns an Element that matches a criteria specified via a callback.

Declaration
public Element FindChild(Func<Element, bool> callback, bool recursive = true)
Public Function FindChild(callback As Func(Of Element, Boolean), Optional recursive As Boolean = True) As Element
Parameters
Type Name Description
Func<Element, bool> callback

The callback method used to test the elements.

bool recursive

Indicates whether to iterate over child elements' children.

Returns
Type Description
Element

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