RanorexRanorex Documentation
TryParse Method (locationString, location)
NamespacesRanorexLocationTryParse(String, Location%)
Tries to creates a new instance of the Location class from its string representation.
Declaration Syntax
C#Visual BasicVisual C++
public static bool TryParse(
	string locationString,
	out Location location
)
Public Shared Function TryParse ( _
	locationString As String, _
	<OutAttribute> ByRef location As Location _
) As Boolean
public:
static bool TryParse(
	String^ locationString, 
	[OutAttribute] Location^% location
)
Parameters
locationString (String)
The location string. Supports various different formats.
location ( Location %)
When this method returns, contains the new Location instance if conversion was successful, otherwise null.
Return Value
True if the conversion was successful, otherwise false.
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.

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