MKMapView.ConvertRegion MKMapView.ConvertRegion Method

Definition

Overloads

ConvertRegion(MKCoordinateRegion, UIView) ConvertRegion(MKCoordinateRegion, UIView)

Converts a map region to a rectangle.

ConvertRegion(MKCoordinateRegion, NSView) ConvertRegion(MKCoordinateRegion, NSView)

ConvertRegion(MKCoordinateRegion, UIView) ConvertRegion(MKCoordinateRegion, UIView)

Converts a map region to a rectangle.

[Foundation.Export("convertRegion:toRectToView:")]
public virtual CoreGraphics.CGRect ConvertRegion (MapKit.MKCoordinateRegion region, UIKit.UIView toRectToView);
abstract member ConvertRegion : MapKit.MKCoordinateRegion * UIKit.UIView -> CoreGraphics.CGRect
override this.ConvertRegion : MapKit.MKCoordinateRegion * UIKit.UIView -> CoreGraphics.CGRect

Parameters

region
MKCoordinateRegion MKCoordinateRegion

The map region to convert.

toRectToView
UIView UIView

The view whose coordinate system is used for the conversion.

This parameter can be null.

Returns

The converted rectangle.

Remarks

If the view is null, the conversion will use a rectangle relative to the window.

ConvertRegion(MKCoordinateRegion, NSView) ConvertRegion(MKCoordinateRegion, NSView)

[Foundation.Export("convertRegion:toRectToView:")]
public virtual CoreGraphics.CGRect ConvertRegion (MapKit.MKCoordinateRegion region, AppKit.NSView toRectToView);
abstract member ConvertRegion : MapKit.MKCoordinateRegion * AppKit.NSView -> CoreGraphics.CGRect
override this.ConvertRegion : MapKit.MKCoordinateRegion * AppKit.NSView -> CoreGraphics.CGRect

Parameters

toRectToView
NSView NSView

Returns

Applies to