Click or drag to resize
Ranorex

RawTextCaptureString Method

Tries to capture the raw text string content from the specified element.

Namespace:  Ranorex
Assembly:  Ranorex.Plugin.RawText (in Ranorex.Plugin.RawText.dll) Version: 12.7.4-git.38314c06
Syntax
public static string CaptureString(
	Element element
)

Parameters

element
Type: Ranorex.CoreElement
The element to capture the text from. The element must have the nativewindow capability.

Return Value

Type: String
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.
See Also