Struct
Location

Represents a geographical location.

Definition

Namespace:Telerik.Maui.Controls.ShapefileReader

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public struct Location

Constructors

Location(double, double)

Initializes a new instance of the Location struct.

Declaration

cs-api-definition
public Location(double latitude, double longitude)

Parameters

latitude

double

The latitude.

longitude

double

The longitude.

Properties

Invalid

Gets a value that represents an invalid Location structure.

Declaration

cs-api-definition
public static Location Invalid { get; }

Property Value

Location

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.

IsEmpty

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

Declaration

cs-api-definition
public bool IsEmpty { get; }

Property Value

bool

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.

Latitude

Gets or sets the latitude value of the location.

Declaration

cs-api-definition
public double Latitude { readonly get; set; }

Property Value

double

Longitude

Gets or sets the longitude value of the location.

Declaration

cs-api-definition
public double Longitude { readonly get; set; }

Property Value

double

Methods

Equals(Location, Location)

Checks whether two Location values are equal.

Declaration

cs-api-definition
public static bool Equals(Location location1, Location location2)

Parameters

location1

Location

location2

Location

Returns

bool

Equals(object)

Determines whether the specified object is equal to this instance.

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

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)

GetHashCode()

Returns a hash code for this instance.

Declaration

cs-api-definition
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()

ToString()

Returns a string that represents this instance.

Declaration

cs-api-definition
public override string ToString()

Returns

string

A string that represents this instance.

Overrides ValueType.ToString()

Operators

operator !=(Location, Location)

Checks whether two Location values are not equal.

Declaration

cs-api-definition
public static bool operator !=(Location location1, Location location2)

Parameters

location1

Location

location2

Location

Returns

bool

operator ==(Location, Location)

Checks whether two Location values are equal.

Declaration

cs-api-definition
public static bool operator ==(Location location1, Location location2)

Parameters

location1

Location

location2

Location

Returns

bool