Click or drag to resize
Ranorex

ElementSetAttributeValue Method (String, String)

Sets the value of an attribute.

Namespace:  Ranorex.Core
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public void SetAttributeValue(
	string name,
	string value
)

Parameters

name
Type: SystemString
The name of the attribute.
value
Type: SystemString
The value to set as string.

Implements

IElementSetAttributeValue(String, String)
Exceptions
ExceptionCondition
ArgumentNullExceptionIf name is null.
SetAttributeFailedExceptionThrown if setting the attribute value failed or the string value could not be converted to the attribute's type.
See Also