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

Initializes a new instance of the LocationRect class.

System_CAPS_pubmethod LocationRect(Double, Double, Double, Double)

Initializes a new instance of the LocationRect class using the specified borders.

System_CAPS_pubmethod LocationRect(IList<Location>)

Initializes a new instance of the LocationRect class using the specified collection of locations.

System_CAPS_pubmethod LocationRect(Location, Double, Double)

Initializes a new instance of the LocationRect class, centered on the specified location.

System_CAPS_pubmethod LocationRect(Location, Location)

Initializes a new instance of the LocationRect class using the specified locations as northwest and southeast corners of the rectangle.

System_CAPS_pubmethod LocationRect(LocationRect)

Initializes a new instance of the LocationRect class.

Properties

Name Description
System_CAPS_pubproperty Center

Gets the location of the center of the rectangle.

System_CAPS_pubproperty East

Gets or sets the longitude of the eastern border of the rectangle.

System_CAPS_pubproperty Height

Gets the height of the location rectangle.

System_CAPS_pubproperty North

Gets or sets the latitude of the northern border of the rectangle.

System_CAPS_pubproperty Northeast

Gets or sets the location of the northeast corner of the rectangle.

System_CAPS_pubproperty Northwest

Gets the location or the northwest corner of the rectangle.

System_CAPS_pubproperty South

Gets or sets the latitude of the southern border of the rectangle.

System_CAPS_pubproperty Southeast

Gets the location of the southeast corner of the rectangle.

System_CAPS_pubproperty Southwest

Gets or sets the location of the southwest corner of the rectangle.

System_CAPS_pubproperty West

Gets or sets the longitude of the western border of the rectangle.

System_CAPS_pubproperty Width

Gets or sets the width of the rectangle.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

Determines whether this location rectangle is equal to the specified object.(Overrides Object.Equals(Object).)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

Retrieves the hash code for this location rectangle.(Overrides Object.GetHashCode().)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod Intersection(LocationRect)

Retrieves the intersection rectangle of this location rectangle and the specified location rectangle.

System_CAPS_pubmethod Intersects(LocationRect)

Determines whether this location rectangle intersects with the specified location rectangle.

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

Converts the location rectangle to a formatted string containing the latitude, longitude, and altitude values of its corners.(Overrides Object.ToString().)

System_CAPS_pubmethod 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
System_CAPS_puboperatorSystem_CAPS_static Equality(LocationRect, LocationRect)

Determines whether two location rectangle instances are equal.

System_CAPS_puboperatorSystem_CAPS_static Inequality(LocationRect, LocationRect)

Determines whether two location rectangle instances are not equal.

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod 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