Property VisibleArea
VisibleArea
Gets the view's visible area.
Declaration
public Polygon VisibleArea { get; }
Property Value
Type | Description |
---|---|
Polygon | The view's visible area. |
Remarks
The visible area represents the portion of the Map that is visible in the MapView. When a new Map is assigned to a MapView, the default value of the visible area is set from the InitialViewpoint.
Users can interactively navigate the map to change the visible area, or you can programmatically change this using methods that set the Viewpoint, such as SetViewpoint(Viewpoint).
The visible area polygon always contains one ring with four vertices, each representing a corner of the map. It is a Polygon and not an Envelope because the map may be rotated and each corner of the map may contain unique x-y coordinates. Note that the visible area excludes the portion of the map obscured by the map view's attribution bar. As a result, the edges and center of the visible area may not coincide with the bounds and center of the MapView.
Returns null
if the map isn't in a ready-state.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Windows | 100.13 - 200.5 |