編輯

共用方式為


MKMapView.ConvertRegion Method

Definition

Overloads

ConvertRegion(MKCoordinateRegion, UIView)

Converts a map region to a rectangle.

ConvertRegion(MKCoordinateRegion, NSView)

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

The map region to convert.

toRectToView
UIView

The view whose coordinate system is used for the conversion.

This parameter can be null.

Returns

The converted rectangle.

Attributes

Remarks

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

Applies to

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

Returns

Attributes

Applies to