[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Recognition.Structure.Element.FindContentItem

FindContentItem Method

FindContentItem(Func<ContentItemBase, bool>, bool)

Iterates over content items that belong to this Element or its children, and returns a ContentItem that matches a criteria specified via a callback.

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

The callback method used to test the content items.

bool recursive

Indicates whether to iterate over content items of child elements.

Returns
Type Description
ContentItemBase

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