RanorexRanorex Documentation
CaptureString Method (element)
NamespacesRanorexRawTextCaptureString(Element)
Tries to capture the raw text string content from the specified element.
Declaration Syntax
C#Visual BasicVisual C++
public static string CaptureString(
	Element element
)
Public Shared Function CaptureString ( _
	element As Element _
) As String
public:
static String^ CaptureString(
	Element^ element
)
Parameters
element (Element)
The element to capture the text from. The element must have the nativewindow capability.
Return Value
The captured text string or null if the element does not support the nativewindow capability.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf element is a null reference.
RanorexExceptionIf capturing the raw text fails, e.g. due to security restrictions.

Assembly: Ranorex.Plugin.RawText (Module: Ranorex.Plugin.RawText) Version: 3.2.3.16825 (3.2.3.16825)