MKMapView.ConvertCoordinate 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
ConvertCoordinate(CLLocationCoordinate2D, NSView) | |
ConvertCoordinate(CLLocationCoordinate2D, UIView) |
Converts a map coordinate to a point. |
ConvertCoordinate(CLLocationCoordinate2D, NSView)
[Foundation.Export("convertCoordinate:toPointToView:")]
public virtual CoreGraphics.CGPoint ConvertCoordinate (CoreLocation.CLLocationCoordinate2D coordinate, AppKit.NSView toPointToView);
abstract member ConvertCoordinate : CoreLocation.CLLocationCoordinate2D * AppKit.NSView -> CoreGraphics.CGPoint
override this.ConvertCoordinate : CoreLocation.CLLocationCoordinate2D * AppKit.NSView -> CoreGraphics.CGPoint
Parameters
- coordinate
- CLLocationCoordinate2D
- toPointToView
- NSView
Returns
- Attributes
Applies to
ConvertCoordinate(CLLocationCoordinate2D, UIView)
Converts a map coordinate to a point.
[Foundation.Export("convertCoordinate:toPointToView:")]
public virtual CoreGraphics.CGPoint ConvertCoordinate (CoreLocation.CLLocationCoordinate2D coordinate, UIKit.UIView toPointToView);
abstract member ConvertCoordinate : CoreLocation.CLLocationCoordinate2D * UIKit.UIView -> CoreGraphics.CGPoint
override this.ConvertCoordinate : CoreLocation.CLLocationCoordinate2D * UIKit.UIView -> CoreGraphics.CGPoint
Parameters
- coordinate
- CLLocationCoordinate2D
The coordinate to convert.
- toPointToView
- UIView
The view whose coordinate system should be used to convert the map coordinate.
This parameter can be null
.
Returns
The converted point in the coordinate system of the specified view.
- Attributes
Remarks
If a view is not specified, the point will be relative to the window.