 | 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
Syntaxpublic static Distance Parse(
string s
)
Public Shared Function Parse (
s As String
) As Distance
Parameters
- s
- Type: SystemString
A string containing the distance to convert.
Return Value
Type:
DistanceA new distance parsed from the given string
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | If the given string is null. |
| ArgumentException | If the given string is not a numeric type (int or double). |
| ArgumentOutOfRangeException | If the given string is a negative number. |
See Also