 | ControlGetPropertyValueT Method (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
Syntaxpublic T GetPropertyValue<T>(
string name
)
Public Function GetPropertyValue(Of T) (
name As String
) As T
Parameters
- name
- Type: SystemString
The name of the property.
Type Parameters
- T
- The type of the property to get the value from.
Return Value
Type:
TThe 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| Exception | Condition |
|---|
| InvalidCastException | If the returned value cannot be casted
to the specified type. |
| ActionFailedException | Thrown if invoking the action failed. |
See Also