Click or drag to resize
Ranorex

ControlInvokeMethod Method (String)

Invokes the specified method on the control.

Namespace:  Ranorex
Assembly:  Ranorex.Plugin.WinForms (in Ranorex.Plugin.WinForms.dll) Version: 12.7.4-git.38314c06
Syntax
public Object InvokeMethod(
	string name
)

Parameters

name
Type: SystemString
The name of the method to invoke.

Return Value

Type: Object
The (serializable) return value of the invoked method.
Exceptions
ExceptionCondition
ActionFailedExceptionThrown if invoking the action failed.
Remarks
Use this method to invoke public instance methods without arguments on a control.
See Also