CoordinatePartTryParse(String, CoordinateType, CoordinatePart) Method
Attempts to parse a string into a CoordinatePart.
Namespace: CoordinateSharpAssembly: CoordinateSharp (in CoordinateSharp.dll) Version: 3.1.1.1
XMLNS for XAML: Not mapped to an xmlns.
public static bool TryParse(
string value,
CoordinateType cType,
out CoordinatePart coordinatePart
)
- value String
- CoordinatePart string
- cType CoordinateType
- CoordinateType
- coordinatePart CoordinatePart
- CoordinatePart object to populate
Booleanboolean
The following example demonstrates how to parse a latitude from a string.
CoordinatePart cp;
if(CoordinatePart.TryParse("-32.891º", CoordinateType.Long, out cp))
{
Console.WriteLine(cp); //W 32º 53' 27.6"
}