New to Telerik UI for .NET MAUIStart a free 30-day trial

Location

Struct

Represents a geographical location.

Definition

Namespace:Telerik.Maui.Controls.ShapefileReader

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public struct Location

Constructors

Initializes a new instance of the Location struct.

C#
public Location(double latitude, double longitude)
Parameters:latitudedouble

The latitude.

longitudedouble

The longitude.

Properties

Gets a value that represents an invalid Location structure.

C#
public static Location Invalid { get; }
Remarks:

A Location structure with Latitude and Longitude values set to 0 is not empty. An empty Location structure has Latitude and Longitude values set to negative infinity. This is the only time a Location structure can have negative infinity values.

Gets a value that indicates whether this Location structure is empty.

C#
public bool IsEmpty { get; }
Remarks:

A Location structure with Latitude and Longitude values set to 0 is not empty. An empty Location structure has Latitude and Longitude values set to negative infinity. This is the only time a Location structure can have negative infinity values.

Gets or sets the latitude value of the location.

C#
public double Latitude { readonly get; set; }

Gets or sets the longitude value of the location.

C#
public double Longitude { readonly get; set; }

Methods

Checks whether two Location values are equal.

C#
public static bool Equals(Location location1, Location location2)
Parameters:location1Locationlocation2LocationReturns:

bool

Determines whether the specified object is equal to this instance.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with this instance.

Returns:

bool

true if the specified object is equal to this instance; otherwise, false.

Overrides: ValueType.Equals(object)

Returns a hash code for this instance.

C#
public override int GetHashCode()
Returns:

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Overrides: ValueType.GetHashCode()

Returns a string that represents this instance.

C#
public override string ToString()
Returns:

string

A string that represents this instance.

Overrides: ValueType.ToString()

Operators

Checks whether two Location values are not equal.

C#
public static bool operator !=(Location location1, Location location2)
Parameters:location1Locationlocation2LocationReturns:

bool

Checks whether two Location values are equal.

C#
public static bool operator ==(Location location1, Location location2)
Parameters:location1Locationlocation2LocationReturns:

bool