CoordinatePart(Int32, Double, CoordinatesPosition) Constructor

Creates a populated CoordinatePart from a Degrees Minutes Seconds part.

Definition

Namespace: CoordinateSharp
Assembly: CoordinateSharp (in CoordinateSharp.dll) Version: 2.21.1.1
XMLNS for XAML: Not mapped to an xmlns.
C#
public CoordinatePart(
	int deg,
	double minSec,
	CoordinatesPosition pos
)

Parameters

deg  Int32
Degrees
minSec  Double
Decimal Minutes
pos  CoordinatesPosition
Coordinate part position

Example

The following example creates a populated latitudinal coordinate part from Decimal Degree Minute values and assigns it to a Coordinate object.
C#
//Create a new default coordinate
Coordinate c = new Coordinate();

//Create a coordinate part using the Decimal Degree latitude N25 36.24854°.
CoordinatePart cp = new CoordinatePart(25, 36.24854, CoordinatesPosition.N);

//Assign the latitudinal value to the coordinate.
c.Latitude = cp;

See Also