LocationRect Class
Represents a rectangle on the map.
Namespace: Microsoft.Maps.MapControl.WPF
Assembly: Microsoft.Maps.MapControl.WPF (in Microsoft.Maps.MapControl.WPF.dll)
Inheritance Hierarchy
System.Object
Microsoft.Maps.MapControl.WPF.LocationRect
Syntax
[TypeConverterAttribute(typeof(LocationRectConverter))]
public class LocationRect : IFormattable
[TypeConverterAttribute((LocationRectConverter^::typeid))]
public ref class LocationRect : IFormattable
[<TypeConverterAttribute(typeof(LocationRectConverter))>]
type LocationRect =
class
interface IFormattable
end
<TypeConverterAttribute(GetType(LocationRectConverter))>
Public Class LocationRect
Implements IFormattable
Constructors
Name | Description | |
---|---|---|
LocationRect() | Initializes a new instance of the LocationRect class. |
|
LocationRect(Double, Double, Double, Double) | Initializes a new instance of the LocationRect class using the specified borders. |
|
LocationRect(IList<Location>) | Initializes a new instance of the LocationRect class using the specified collection of locations. |
|
LocationRect(Location, Double, Double) | Initializes a new instance of the LocationRect class, centered on the specified location. |
|
LocationRect(Location, Location) | Initializes a new instance of the LocationRect class using the specified locations as northwest and southeast corners of the rectangle. |
|
LocationRect(LocationRect) | Initializes a new instance of the LocationRect class. |
Properties
Name | Description | |
---|---|---|
Center | Gets the location of the center of the rectangle. |
|
East | Gets or sets the longitude of the eastern border of the rectangle. |
|
Height | Gets the height of the location rectangle. |
|
North | Gets or sets the latitude of the northern border of the rectangle. |
|
Northeast | Gets or sets the location of the northeast corner of the rectangle. |
|
Northwest | Gets the location or the northwest corner of the rectangle. |
|
South | Gets or sets the latitude of the southern border of the rectangle. |
|
Southeast | Gets the location of the southeast corner of the rectangle. |
|
Southwest | Gets or sets the location of the southwest corner of the rectangle. |
|
West | Gets or sets the longitude of the western border of the rectangle. |
|
Width | Gets or sets the width of the rectangle. |
Methods
Name | Description | |
---|---|---|
Equals(Object) | Determines whether this location rectangle is equal to the specified object.(Overrides Object.Equals(Object).) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | Retrieves the hash code for this location rectangle.(Overrides Object.GetHashCode().) |
|
GetType() | (Inherited from Object.) |
|
Intersection(LocationRect) | Retrieves the intersection rectangle of this location rectangle and the specified location rectangle. |
|
Intersects(LocationRect) | Determines whether this location rectangle intersects with the specified location rectangle. |
|
MemberwiseClone() | (Inherited from Object.) |
|
ToString() | Converts the location rectangle to a formatted string containing the latitude, longitude, and altitude values of its corners.(Overrides Object.ToString().) |
|
ToString(IFormatProvider) | Converts the location rectangle to a formatted string containing the latitude, longitude, and altitude values of its corners using a given format provider. |
Operators
Name | Description | |
---|---|---|
Equality(LocationRect, LocationRect) | Determines whether two location rectangle instances are equal. |
|
Inequality(LocationRect, LocationRect) | Determines whether two location rectangle instances are not equal. |
Explicit Interface Implementations
Name | Description | |
---|---|---|
IFormattable.ToString(String, IFormatProvider) |
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.
See Also
Microsoft.Maps.MapControl.WPF Namespace
Return to top