This topic has not yet been rated - Rate this topic

CompassReading.MagneticHeading Property

April 12, 2014

Gets the heading, in degrees, measured clockwise from the Earth’s magnetic north.

Namespace:  Microsoft.Devices.Sensors
Assembly:  Microsoft.Devices.Sensors (in Microsoft.Devices.Sensors.dll)
'Declaration
Public Property MagneticHeading As Double

Property Value

Type: System.Double
The heading relative to the Earth’s magnetic north.

The TrueHeading and MagneticHeading properties return values of type double. In Windows Phone OS 7.1, these double values are returned without precision; for example, as 122.0 degrees. In Windows Phone 8, the double values of these properties are returned with precision; for example, as 122.12345 degrees.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.