Click or drag to resize
Ranorex

ControlGetPropertyValueT Method (BindingFlags, String)

Gets the (serializable) value of the specified control property.

Namespace:  Ranorex
Assembly:  Ranorex.Plugin.WinForms (in Ranorex.Plugin.WinForms.dll) Version: 12.7.4-git.38314c06
Syntax
public T GetPropertyValue<T>(
	BindingFlags flags,
	string name
)

Parameters

flags
Type: System.ReflectionBindingFlags
A combination of flags that further specify which property to get.
name
Type: SystemString
The name of the property.

Type Parameters

T
The type of the property to get the value from.

Return Value

Type: T
The value of the named property or the default value of the specified type if the returned value is null and the specified type is a value type.
Exceptions
ExceptionCondition
InvalidCastExceptionIf the returned value cannot be casted to the specified type.
ActionFailedExceptionThrown if invoking the action failed.
See Also