 | ImagingTryFindSingle Method (Element, Bitmap, ImagingFindOptions, ImagingMatch) |
Tries to find the specified feature in (a screenshot of) the
element.
Namespace:
Ranorex
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic static bool TryFindSingle(
Element element,
Bitmap feature,
ImagingFindOptions options,
out ImagingMatch match
)
Public Shared Function TryFindSingle (
element As Element,
feature As Bitmap,
options As ImagingFindOptions,
<OutAttribute> ByRef match As ImagingMatch
) As Boolean
Parameters
- element
- Type: Ranorex.CoreElement
The element to make a screenshot of in which will be searched. - feature
- Type: System.DrawingBitmap
The image to search for. - options
- Type: RanorexImagingFindOptions
A ImagingFindOptions instance that defines the options
for the search. - match
- Type: RanorexImagingMatch
The first or best ImagingMatch found (as specified in the
options), null if the search failed for
any reason or no match was found.
Return Value
Type:
BooleanTrue if a match was found,
false otherwise.
See Also