Class Position
Defines the position struct
Inheritance
System.Object
Position
Namespace: Com.Syncfusion.Maps
Assembly: Syncfusion.SfMaps.Android.dll
Syntax
public sealed class Position : ValueType
Constructors
Position(Double, Double)
Initializes a new instance of the Position struct.
Declaration
public Position(double latitude, double longitude)
Parameters
Type | Name | Description |
---|---|---|
System.Double | latitude | latitude value |
System.Double | longitude | longitude value |
Properties
Latitude
Gets or sets the latitude of map position in decimal degrees.
Declaration
public double Latitude { get; set; }
Property Value
Type |
---|
System.Double |
Longitude
Gets or sets the longitude of map position in decimal degrees.
Declaration
public double Longitude { get; set; }
Property Value
Type |
---|
System.Double |
Methods
Equals(Object)
Checks the object data type is to equal
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | object value |
Returns
Type | Description |
---|---|
System.Boolean | return true/false |
GetHashCode()
It override to get hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | returns hash code |
Operators
Equality(Position, Position)
Checks the position values
Declaration
public static bool operator ==(Position x, Position y)
Parameters
Type | Name | Description |
---|---|---|
Position | x | X Position |
Position | y | Y Position |
Returns
Type | Description |
---|---|
System.Boolean | return true/false |
Inequality(Position, Position)
Checks the position values
Declaration
public static bool operator !=(Position x, Position y)
Parameters
Type | Name | Description |
---|---|---|
Position | x | X Position |
Position | y | Y Position |
Returns
Type | Description |
---|---|
System.Boolean | return true/false |