RanorexRanorex Documentation
GetAttributeValueText Method (name, regex)
NamespacesRanorex.CoreElementGetAttributeValueText(String, Regex)
Returns the value of an attribute converted to its string representation. If a regex is provided, only the part of the string representation matching the regular expression is returned.
Declaration Syntax
C#Visual BasicVisual C++
public string GetAttributeValueText(
	string name,
	Regex regex
)
Public Function GetAttributeValueText ( _
	name As String, _
	regex As Regex _
) As String
public:
String^ GetAttributeValueText(
	String^ name, 
	Regex^ regex
)
Parameters
name (String)
The name of the attribute.
regex (Regex)
A regular expression that defines which part of the attribute value string representation should be returned. If more than a single group (= whole match) is captured by the regex, the second group (mark using "(?<1>expression)") is returned.
Return Value
The value of the attribute converted to its string representation and optionally matched by the provided regex regular expression.
Remarks
This method internally calls GetAttributeValue(String) and converts the returned value to its string represenation using the ValueConverter.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf name is null.

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