CoordinatePartParse(String, CoordinateType) Method

Parses a string into a CoordinatePart with specified part type (latitude/longitude).

Definition

Namespace: CoordinateSharp
Assembly: CoordinateSharp (in CoordinateSharp.dll) Version: 3.1.1.1
XMLNS for XAML: Not mapped to an xmlns.
C#
public static CoordinatePart Parse(
	string value,
	CoordinateType cType
)

Parameters

value  String
CoordinatePart string
cType  CoordinateType
CoordinateType

Return Value

CoordinatePart
CoordinatePart

Example

The following example demonstrates how to parse a latitude from a string. Latitude is specified so that the parser knows to attempt parse in latitude.
C#
CoordinatePart cp = CoordinatePart.Parse("-32.891º", CoordinateType.Long);

See Also