RanorexRanorex Documentation
ContainsImage Method (element, image, findOptions, message)
NamespacesRanorexValidateContainsImage(Element, Bitmap, Imaging..::.FindOptions, String)
Validates if the screenshot of the specified element contains the given image.
Declaration Syntax
C#Visual BasicVisual C++
public static void ContainsImage(
	Element element,
	Bitmap image,
	Imaging..::.FindOptions findOptions,
	string message
)
Public Shared Sub ContainsImage ( _
	element As Element, _
	image As Bitmap, _
	findOptions As Imaging..::.FindOptions, _
	message As String _
)
public:
static void ContainsImage(
	Element^ element, 
	Bitmap^ image, 
	Imaging..::.FindOptions^ findOptions, 
	String^ message
)
Parameters
element (Element)
The element to take the screenshot from.
image (Bitmap)
The image to search inside the element screenshot.
findOptions (Imaging..::.FindOptions)
A Imaging..::.FindOptions instance that defines the options for the search.
message (String)
The message to log. "{0}" is replaced by the string representation of the element.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf image is null.
ValidationExceptionIf the validation fails.

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