LocationRectangle Class
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Represents a location rectangle on the map control.
Assembly: Microsoft.Phone.Maps (in Microsoft.Phone.Maps.dll)
The LocationRectangle type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | LocationRectangle() | Initializes a new instance of the LocationRectangle class. |
![]() | LocationRectangle(GeoCoordinate, GeoCoordinate) | Initializes a new instance of the LocationRectangle class with the specified Northwest and Southeast coordinates. |
![]() | LocationRectangle(GeoCoordinate, Double, Double) | Initializes a new instance of the LocationRectangle class with the specified Center, Width and Height. |
![]() | LocationRectangle(Double, Double, Double, Double) | Initializes a new instance of the LocationRectangle class with the specified north, west, south and east bounds. |
| Name | Description | |
|---|---|---|
![]() | Center | Gets the center of the current LocationRectangle. |
![]() | East | Gets or sets the east bound of the LocationRectangle. |
![]() | HeightInDegrees | Gets the difference between the north latitude and the south latitude. |
![]() | North | Gets or sets the north bound of the LocationRectangle. |
![]() | Northeast | Gets or sets the coordinates of the northeast corner of the map control. |
![]() | Northwest | Gets or sets the coordinates of the northwest corner of the map control. |
![]() | South | Gets or sets the south bound of the LocationRectangle. |
![]() | Southeast | Gets or sets the coordinates of the southeast corner of the map control. |
![]() | Southwest | Gets or sets the coordinates of the southwest corner of the map control. |
![]() | West | Gets or sets the west bound of the LocationRectangle. |
![]() | WidthInDegrees | Gets the difference between the west longitude and the east longitude. |
| Name | Description | |
|---|---|---|
![]() | Clone | Creates a new instance of LocationRectangle. |
![]() ![]() | CreateBoundingRectangle(array<GeoCoordinate>) | Creates a LocationRectangle that covers all the specified geographical coordinates. |
![]() ![]() | CreateBoundingRectangle(IEnumerable<GeoCoordinate>) | Creates a LocationRectangle that covers all the specified geographical coordinates. |
![]() | Equals(LocationRectangle) | Determines whether this instance of the LocationRectangle is equal to the specified instance of the LocationRectangle. |
![]() | Equals(Object) | Determines whether this instance of the LocationRectangle is equal to the specified instance of the LocationRectangle. (Overrides Object::Equals(Object).) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Returns the hash code for the LocationRectangle. (Overrides Object::GetHashCode().) |
![]() | GetIntersection | Computes the intersection of the specified LocationRectangle with this LocationRectangle. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | Intersects | Determines whether the specified LocationRectangle intersects with this LocationRectangle. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString() | Returns a string representation of this LocationRectangle. (Overrides Object::ToString().) |
![]() | ToString(IFormatProvider) | Returns a string representation of this LocationRectangle. |
![]() | ToString(String, IFormatProvider) | Returns a string representation of this LocationRectangle. |
Capabilities
If you use this API in your app, you must specify the following capabilities in the app manifest. Otherwise, your app might not work correctly or it might exit unexpectedly.
ID_CAP_MAP | Windows Phone 8 |
For more info, see App capabilities and hardware requirements for Windows Phone 8.



