Click or drag to resize
Ranorex

DistanceParse Method

Converts a string representation of a distance to its distance equivalent.

Namespace:  Ranorex.Core
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public static Distance Parse(
	string s
)

Parameters

s
Type: SystemString
A string containing the distance to convert.

Return Value

Type: Distance
A new distance parsed from the given string
Exceptions
ExceptionCondition
ArgumentNullExceptionIf the given string is null.
ArgumentExceptionIf the given string is not a numeric type (int or double).
ArgumentOutOfRangeExceptionIf the given string is a negative number.
See Also