RanorexRanorex Documentation
Contains Method (image, feature)
NamespacesRanorexImagingContains(Bitmap, Bitmap)
Searches for the specified feature in the image using DefaultImaging..::.FindOptions and returns whether the feature is found.
Declaration Syntax
C#Visual BasicVisual C++
public static bool Contains(
	Bitmap image,
	Bitmap feature
)
Public Shared Function Contains ( _
	image As Bitmap, _
	feature As Bitmap _
) As Boolean
public:
static bool Contains(
	Bitmap^ image, 
	Bitmap^ feature
)
Parameters
image (Bitmap)
The image to search in.
feature (Bitmap)
The image to search for.
Return Value
True if the feature is found, otherwise false.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf image is null.
ArgumentNullExceptionIf feature is null.
ArgumentExceptionIf the feature is greater in size than the image.
ArgumentExceptionIf the bitmap format of the feature cannot be converted to that of the image.

Assembly: Ranorex.Core (Module: Ranorex.Core) Version: 4.0.3.22982 (4.0.3.22982)