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
pagePageElementThe page to search. Must not be
null.querystringQuery text to match near the anchor region.
optionsProximityOptionsProximity 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
pageoroptionsisnull.
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
pagesIEnumerable<PageElement>Pages to search. Must not be
null.querystringQuery text to match near the anchor region.
optionsProximityOptionsProximity and text options (anchor required). May be
nullfor defaults (but must include an anchor region).
Returns
Exceptions
- ArgumentNullException
Thrown when
pagesisnull.