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.
Inheritance Hierarchy
System..::.Object
Microsoft.Phone.Maps.Controls..::.LocationRectangle
Namespace: Microsoft.Phone.Maps.Controls
Assembly: Microsoft.Phone.Maps (in Microsoft.Phone.Maps.dll)
Syntax
<TypeConverterAttribute(GetType(LocationRectangleConverter))> _
Public Class LocationRectangle _
Implements IFormattable, IEquatable(Of LocationRectangle)
[TypeConverterAttribute(typeof(LocationRectangleConverter))]
public class LocationRectangle : IFormattable,
IEquatable<LocationRectangle>
The LocationRectangle type exposes the following members.
Constructors
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. |
Top
Properties
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. |
Top
Methods
Name | Description | |
---|---|---|
![]() |
Clone | Creates a new instance of LocationRectangle. |
![]() ![]() |
CreateBoundingRectangle(array<GeoCoordinate>[]()[]) | Creates a LocationRectangle that covers all the specified geographical coordinates. |
![]() ![]() |
CreateBoundingRectangle(IEnumerable<(Of <(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. |
Top
Remarks
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.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.