User Tools

Site Tools


thinkgeo.mapsuite.windowsphonecore.degreesminutesseconds

ThinkGeo.MapSuite.WindowsPhoneCore.DegreesMinutesSeconds

Note: The page was created before Map Suite 10. Map Suite 10.0 organized many classes into new namespaces and assemblies as well as had a few minor breaks in compatibility. The majority of previously built code should work without modification assuming the new namespaces are added. For guidance on upgrading your existing code, please check out MapSuite 10 Upgrade Guide.

<!– Structure –> This structure represents a degrees, minutes and seconds value.

Remarks

This structure is used in many places to represent decimal degree numbers as degrees, minutes and seconds.

Inheritance Hierarchy

Members Summary

Public Constructors

Name Parameters DeclaringType Summary
Public MethodDegreesMinutesSeconds Int32, Int32, Double This constructor allows you to create an instance of the class by specifying the degree, minute and second values.

Protected Constructors

Name Parameters DeclaringType Summary

Public Methods

Name Parameters DeclaringType Summary
Public MethodAdd DegreesMinutesSeconds Add two DegreesMinutsSeconds together and return back a summary of the two.
Public MethodEquals Object Object(overriden) Compares current DegreesMinutesSeconds with a passing object.
Public MethodGetHashCode Object(overriden) Serves as hash function for the particular type.
Public MethodGetType Object
Public MethodToString Object(overriden) This method returns a formatted representation of the degrees, minutes and seconds value.
Public MethodToString Int32 This method returns a formatted representation of the degrees, minutes and seconds value that has been rounded to the specified decimals.

Protected Methods

Name Parameters DeclaringType Summary
Protected MethodFinalize Object
Protected MethodMemberwiseClone Object

Public Properties

Name Return DeclaringType Summary
Public PropertyDegrees Int32 This property returns the degrees portion of the structure.
Public PropertyMinutes Int32 This property returns the minutes portion of the structure.
Public PropertySeconds Double This property returns the seconds portion of the structure.

Protected Properties

Name Return DeclaringType Summary

Public Events

Name Event Arguments DeclaringType Summary

Public Constructors

DegreesMinutesSeconds(Int32, Int32, Double)

This constructor allows you to create an instance of the class by specifying the degree, minute and second values.

Parameters

Name Type Description
degrees Int32<!– System.Int32 –> This parameter represents the degree portion of the structure.
minutes Int32<!– System.Int32 –> This parameter represents the minute portion of the structure.
seconds Double<!– System.Double –> This parameter represents the second portion of the structure.

Go Back

Protected Constructors

Public Methods

Add(DegreesMinutesSeconds)

Add two DegreesMinutsSeconds together and return back a summary of the two.

Return Value

Return Type Description
DegreesMinutesSeconds<!– ThinkGeo.MapSuite.WindowsPhoneCore.DegreesMinutesSeconds –> The summary of the two DegreesMinutesSeconds.

Parameters

Name Type Description
targetDegreesMinutesSeconds DegreesMinutesSeconds<!– ThinkGeo.MapSuite.WindowsPhoneCore.DegreesMinutesSeconds –> The target DegreesMinutesSeconds to be added together.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.DegreesMinutesSeconds –> Go Back

Equals(Object)

Compares current DegreesMinutesSeconds with a passing object.

Return Value

Return Type Description
Boolean<!– System.Boolean –> True if the passing object satisfies the following two conditions:1) The object is of DegreesMinutesSeconds type.2) The Degrees, Minutes and Seconds of both DegreesMinutesSeconds should be the same.If both conditions are not met, will return false.

Parameters

Name Type Description
obj Object<!– System.Object –> The passing object which will be used to compare with current DegreesMinutesSeconds.

<!– System.Object(overriden) –> Go Back

GetHashCode()

Serves as hash function for the particular type.

Return Value

Return Type Description
Int32<!– System.Int32 –> The hash code for this particular type.

Parameters

Name Type Description

<!– System.Object(overriden) –> Go Back

GetType()

Return Value

Return Type Description
Type<!– System.Type –>

Parameters

Name Type Description

<!– System.Object –> Go Back

ToString()

This method returns a formatted representation of the degrees, minutes and seconds value.

Remarks

The value will be formatted in the standard string format: 75º 21' 28“

Return Value

Return Type Description
String<!– System.String –> This method returns a formatted representation of the degrees, minutes and seconds value.

Parameters

Name Type Description

<!– System.Object(overriden) –> Go Back

ToString(Int32)

This method returns a formatted representation of the degrees, minutes and seconds value that has been rounded to the specified decimals.

Remarks

The value will be formatted in the standard string format. For example, 75º 21' 2.1235” (when the decimals parameter is set to 4).

Return Value

Return Type Description
String<!– System.String –> This method returns a formatted representation of the degrees, minutes and seconds value.

Parameters

Name Type Description
decimals Int32<!– System.Int32 –> The target decimals that the degrees, minutes, seconds value will be rounded to.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.DegreesMinutesSeconds –> Go Back

Protected Methods

Finalize()

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– System.Object –> Go Back

MemberwiseClone()

Return Value

Return Type Description
Object<!– System.Object –>

Parameters

Name Type Description

<!– System.Object –> Go Back

Public Properties

Degrees

This property returns the degrees portion of the structure.

Return Value

Return Type
Int32<!– System.Int32 –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.DegreesMinutesSeconds –> Go Back

Minutes

This property returns the minutes portion of the structure.

Return Value

Return Type
Int32<!– System.Int32 –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.DegreesMinutesSeconds –> Go Back

Seconds

This property returns the seconds portion of the structure.

Return Value

Return Type
Double<!– System.Double –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.DegreesMinutesSeconds –> Go Back

Protected Properties

Public Events

thinkgeo.mapsuite.windowsphonecore.degreesminutesseconds.txt · Last modified: 2017/03/16 21:59 (external edit)