Share via


Map.MoveToRegion(MapSpan) Method

Definition

Adjusts the viewport of the map control to view the specified region.

public:
 virtual void MoveToRegion(Microsoft::Maui::Maps::MapSpan ^ mapSpan);
public void MoveToRegion (Microsoft.Maui.Maps.MapSpan mapSpan);
abstract member MoveToRegion : Microsoft.Maui.Maps.MapSpan -> unit
override this.MoveToRegion : Microsoft.Maui.Maps.MapSpan -> unit
Public Sub MoveToRegion (mapSpan As MapSpan)

Parameters

mapSpan
MapSpan

A MapSpan object containing details on what region should be shown.

Implements

Exceptions

Thrown when mapSpan is null.

Applies to