共用方式為


UIAccessibility.ConvertFrameToScreenCoordinates(CGRect, UIView) 方法

定義

將指定檢視中提供的矩形轉換為螢幕座標。

public static CoreGraphics.CGRect ConvertFrameToScreenCoordinates (CoreGraphics.CGRect rect, UIKit.UIView view);
static member ConvertFrameToScreenCoordinates : CoreGraphics.CGRect * UIKit.UIView -> CoreGraphics.CGRect

參數

rect
CGRect

矩形在檢視座標中要轉換。

view
UIView

中指定座標 rect 的檢視。

傳回

螢幕空間中有座標的矩形。

適用於