Document Solutions for PDF
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Recognition.Structure Namespace / Element Class / FindContentItem Method
The callback method used to test the content items.
Indicates whether to iterate over content items of child elements.

In This Topic
    FindContentItem Method
    In This Topic
    Iterates over content items that belong to this Element or its children, and returns a ContentItem that matches a criteria specified via a callback.
    Syntax
    'Declaration
     
    Public Function FindContentItem( _
       ByVal callback As System.Func(Of ContentItemBase,Boolean), _
       Optional ByVal recursive As System.Boolean _
    ) As ContentItemBase
    public ContentItemBase FindContentItem( 
       System.Func<ContentItemBase,bool> callback,
       System.bool recursive
    )

    Parameters

    callback
    The callback method used to test the content items.
    recursive
    Indicates whether to iterate over content items of child elements.

    Return Value

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