Exporter (0) Imprimer
Développer tout
EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.

LocationRectangle Class

July 28, 2014

Represents a location rectangle on the map control.

System.Object
  Microsoft.Phone.Maps.Controls.LocationRectangle

Namespace:  Microsoft.Phone.Maps.Controls
Assembly:  Microsoft.Phone.Maps (in Microsoft.Phone.Maps.dll)

[TypeConverterAttribute(typeof(LocationRectangleConverter))]
public class LocationRectangle : IFormattable, 
	IEquatable<LocationRectangle>

The LocationRectangle type exposes the following members.

  NameDescription
Public methodLocationRectangle()Initializes a new instance of the LocationRectangle class.
Public methodLocationRectangle(GeoCoordinate, GeoCoordinate)Initializes a new instance of the LocationRectangle class with the specified Northwest and Southeast coordinates.
Public methodLocationRectangle(GeoCoordinate, Double, Double)Initializes a new instance of the LocationRectangle class with the specified Center, Width and Height.
Public methodLocationRectangle(Double, Double, Double, Double)Initializes a new instance of the LocationRectangle class with the specified north, west, south and east bounds.
Top

  NameDescription
Public propertyCenterGets the center of the current LocationRectangle.
Public propertyEastGets or sets the east bound of the LocationRectangle.
Public propertyHeightInDegreesGets the difference between the north latitude and the south latitude.
Public propertyNorthGets or sets the north bound of the LocationRectangle.
Public propertyNortheastGets or sets the coordinates of the northeast corner of the map control.
Public propertyNorthwestGets or sets the coordinates of the northwest corner of the map control.
Public propertySouthGets or sets the south bound of the LocationRectangle.
Public propertySoutheastGets or sets the coordinates of the southeast corner of the map control.
Public propertySouthwestGets or sets the coordinates of the southwest corner of the map control.
Public propertyWestGets or sets the west bound of the LocationRectangle.
Public propertyWidthInDegreesGets the difference between the west longitude and the east longitude.
Top

  NameDescription
Public methodCloneCreates a new instance of LocationRectangle.
Public methodStatic memberCreateBoundingRectangle(GeoCoordinate[])Creates a LocationRectangle that covers all the specified geographical coordinates.
Public methodStatic memberCreateBoundingRectangle(IEnumerable<GeoCoordinate>)Creates a LocationRectangle that covers all the specified geographical coordinates.
Public methodEquals(LocationRectangle)Determines whether this instance of the LocationRectangle is equal to the specified instance of the LocationRectangle.
Public methodEquals(Object)Determines whether this instance of the LocationRectangle is equal to the specified instance of the LocationRectangle. (Overrides Object.Equals(Object).)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeReturns the hash code for the LocationRectangle. (Overrides Object.GetHashCode().)
Public methodGetIntersectionComputes the intersection of the specified LocationRectangle with this LocationRectangle.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodIntersectsDetermines whether the specified LocationRectangle intersects with this LocationRectangle.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToString()Returns a string representation of this LocationRectangle. (Overrides Object.ToString().)
Public methodToString(IFormatProvider)Returns a string representation of this LocationRectangle.
Public methodToString(String, IFormatProvider)Returns a string representation of this LocationRectangle.
Top

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.

Windows Phone OS

Supported in: 8.1, 8.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Afficher:
© 2014 Microsoft