MKMapView.ConvertRegion Method   
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.CGRectParameters
- 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.CGRectParameters
- region
- MKCoordinateRegion
- toRectToView
- NSView
Returns
- Attributes