CreateBoundingRectangle Method (IEnumerable(GeoCoordinate))
Collapse the table of content
Expand the table of content

LocationRectangle.CreateBoundingRectangle Method (IEnumerable<GeoCoordinate>)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Creates a LocationRectangle that covers all the specified geographical coordinates.

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

public static LocationRectangle CreateBoundingRectangle(
	IEnumerable<GeoCoordinate> locations
)

Parameters

locations
Type: System.Collections.Generic.IEnumerable<GeoCoordinate>
The list of coordinates for the LocationRectangle.

Return Value

Type: Microsoft.Phone.Maps.Controls.LocationRectangle
The LocationRectangle that was created with the specified geographical coordinates.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft