 | 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
Syntaxpublic static string CaptureString(
Element element
)
Public Shared Function CaptureString (
element As Element
) As String
Parameters
- element
- Type: Ranorex.CoreElement
The element to capture the text from. The element must have the nativewindow capability.
Return Value
Type:
StringThe captured text string or
null if the
element does not support
the nativewindow capability.
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | If element is a null reference. |
| RanorexException | If capturing the raw text fails, e.g. due to security
restrictions. |
See Also