共用方式為


MKMapView.ConvertCoordinate 方法

定義

多載

ConvertCoordinate(CLLocationCoordinate2D, NSView)
ConvertCoordinate(CLLocationCoordinate2D, UIView)

將地圖座標轉換為點。

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

參數

toPointToView
NSView

傳回

屬性

適用於

ConvertCoordinate(CLLocationCoordinate2D, UIView)

將地圖座標轉換為點。

[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

參數

coordinate
CLLocationCoordinate2D

要轉換的座標。

toPointToView
UIView

座標系統應該用來轉換地圖座標的檢視。

這個參數可以是 null

傳回

指定檢視座標系統中的轉換點。

屬性

備註

如果未指定檢視,點將會相對於視窗。

適用於