Method FindNear
FindNear(PageElement, string, ProximityOptions)
Finds instances of query
located within a proximity of the specified anchor region.
public List<TextMatch> FindNear(PageElement page, string query, ProximityOptions options)
Parameters
page
PageElementThe page to search. Must not be
null
.query
stringQuery text to match near the anchor region.
options
ProximityOptionsProximity and text options (anchor region required).
Returns
- List<TextMatch>
Matches whose contributing elements lie near the given anchor region (possibly empty).
Exceptions
- ArgumentNullException
Thrown when
page
oroptions
isnull
.
FindNear(IEnumerable<PageElement>, string, ProximityOptions)
Finds instances of query
located within a proximity of the specified anchor region across multiple pages
.
The same anchor region and radius are applied to each page independently (page-local coordinates).
public List<TextMatch> FindNear(IEnumerable<PageElement> pages, string query, ProximityOptions options)
Parameters
pages
IEnumerable<PageElement>Pages to search. Must not be
null
.query
stringQuery text to match near the anchor region.
options
ProximityOptionsProximity and text options (anchor required). May be
null
for defaults (but must include an anchor region).
Returns
Exceptions
- ArgumentNullException
Thrown when
pages
isnull
.