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

Represents a rectangular area defined by northwest and southeast locations.

Definition

Namespace:Telerik.Maui.Controls.ShapefileReader

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public struct LocationRect

Inherited Members ValueType.ToString()

Constructors

Initializes a new instance of the LocationRect struct.

C#
public LocationRect(Location northwest, Location southeast)
Parameters:northwestLocation

The northwest.

southeastLocation

The southeast.

Fields

An empty rect.

C#
public static readonly LocationRect Empty

Properties

Gets the east value of the rect.

C#
public double East { get; }

Gets a value indicating whether the current rect is empty.

C#
public bool IsEmpty { get; }

Gets the north value of the rect.

C#
public double North { get; }

Gets the northwest value of the rect.

C#
public readonly Location Northwest { get; }

Gets the south value of the rect.

C#
public double South { get; }

Gets the southeast value of the rect.

C#
public readonly Location Southeast { get; }

Gets the west value of the rect.

C#
public double West { get; }

Methods

Checks whether two LocationRect values are equal.

C#
public static bool Equals(LocationRect locationRect1, LocationRect locationRect2)
Parameters:locationRect1LocationRectlocationRect2LocationRectReturns:

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()

Operators

Checks whether two LocationRect values are not equal.

C#
public static bool operator !=(LocationRect locationRect1, LocationRect locationRect2)
Parameters:locationRect1LocationRectlocationRect2LocationRectReturns:

bool

Checks whether two LocationRect values are equal.

C#
public static bool operator ==(LocationRect locationRect1, LocationRect locationRect2)
Parameters:locationRect1LocationRectlocationRect2LocationRectReturns:

bool