Searches for the specified feature in (a screenshot of) the
element
using DefaultImaging..::.FindOptions.
| C# | Visual Basic | Visual C++ |
public static Imaging..::.Match FindSingle( Element element, Bitmap feature )
Public Shared Function FindSingle ( _ element As Element, _ feature As Bitmap _ ) As Imaging..::.Match
public: static Imaging..::.Match^ FindSingle( Element^ element, Bitmap^ feature )
The first or best Imaging..::.Match found (as specified in the
Default options).
| Exception | Condition |
|---|---|
| RanorexException | If capturing a screenshot of the element fails. |
| ArgumentNullException | If element is null. |
| ArgumentNullException | If feature is null. |
| ArgumentException | If the feature is greater in size
than the screenshot of the element. |
| ArgumentException | If the bitmap format of the feature
cannot be converted to that (color image, Format24bppRgb)
of the screenshot of the element. |
| ImageNotFoundException | If the feature could
not be found. |
