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 As System.Func(Of Element,Boolean), _
Optional ByVal As System.Boolean _
) As Element
public Element FindChild(
System.Func<Element,bool> ,
System.bool
)
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 returned true, or null if no such element exists.
See Also