 | LocationParse Method |
Creates a new instance of the
Location class from its string representation.
Namespace:
Ranorex
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic static Location Parse(
string locationString
)
Public Shared Function Parse (
locationString As String
) As Location
Parameters
- locationString
- Type: SystemString
The location string. Supports various different formats.
Return Value
Type:
LocationThe new instance.
Exceptions| Exception | Condition |
|---|
| FormatException | If the string representation is not valid. |
Examples
Examples for location strings:
'1;2' or '1,2' results in a fixed relative location in pixels.
'0.4;0.6' or '.3,.7' results in a location proportional to the elements size.
Use of the names of location presets (e.g. 'center') is also permitted.
See Also