Modifier

Partager via


MKMapView.SetRegion(MKCoordinateRegion, Boolean) Method

Definition

Changes the region dispalyed on the map.

[Foundation.Export("setRegion:animated:")]
public virtual void SetRegion (MapKit.MKCoordinateRegion region, bool animated);
abstract member SetRegion : MapKit.MKCoordinateRegion * bool -> unit
override this.SetRegion : MapKit.MKCoordinateRegion * bool -> unit

Parameters

region
MKCoordinateRegion

The region to display.

animated
Boolean

A boolean indicating if the transition to the new region should be animated.

Attributes

Remarks

If the region does not fit, the map view will adjust it so that it is visible.

Applies to