UIPrinterPickerController.PresentFromRectAsync 方法

定义

重载

PresentFromRectAsync(CGRect, UIView, Boolean)

在 中定位到 的弹出窗口中异步显示选取器。

PresentFromRectAsync(CGRect, UIView, Boolean, Boolean)

UIPrinterPickerController显示此应用中的 作为弹出框,该弹出框定位到RectangleF视图中包含UIView的对象,无论是否具有动画,具体取决于 animated返回提供结果的任务。

PresentFromRectAsync(CGRect, UIView, Boolean)

在 中定位到 的弹出窗口中异步显示选取器。

public virtual System.Threading.Tasks.Task<UIKit.UIPrinterPickerCompletionResult> PresentFromRectAsync (CoreGraphics.CGRect rect, UIKit.UIView view, bool animated);
abstract member PresentFromRectAsync : CoreGraphics.CGRect * UIKit.UIView * bool -> System.Threading.Tasks.Task<UIKit.UIPrinterPickerCompletionResult>
override this.PresentFromRectAsync : CoreGraphics.CGRect * UIKit.UIView * bool -> System.Threading.Tasks.Task<UIKit.UIPrinterPickerCompletionResult>

参数

rect
CGRect
view
UIView
animated
Boolean

返回

表示异步 PresentFromRect 操作的任务。 TResult 参数的值的类型为 Action<UIKit.UIPrinterPickerCompletionResult>

适用于

PresentFromRectAsync(CGRect, UIView, Boolean, Boolean)

UIPrinterPickerController显示此应用中的 作为弹出框,该弹出框定位到RectangleF视图中包含UIView的对象,无论是否具有动画,具体取决于 animated返回提供结果的任务。

public virtual System.Threading.Tasks.Task<UIKit.UIPrinterPickerCompletionResult> PresentFromRectAsync (CoreGraphics.CGRect rect, UIKit.UIView view, bool animated, out bool result);
abstract member PresentFromRectAsync : CoreGraphics.CGRect * UIKit.UIView * bool *  -> System.Threading.Tasks.Task<UIKit.UIPrinterPickerCompletionResult>
override this.PresentFromRectAsync : CoreGraphics.CGRect * UIKit.UIView * bool *  -> System.Threading.Tasks.Task<UIKit.UIPrinterPickerCompletionResult>

参数

rect
CGRect

要定位弹出框的坐标空间中的 view矩形。

view
UIView

指定坐标空间 rect 的视图。

animated
Boolean

是否对选取器显示进行动画处理。

result
Boolean

返回

适用于