UIPrintInteractionController.PresentFromRectInViewAsync 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
PresentFromRectInViewAsync(CGRect, UIView, Boolean) |
Presents an iPad printing user interface in a particular popover view that can be animated from any specified area in a view. |
PresentFromRectInViewAsync(CGRect, UIView, Boolean, Boolean) |
Asynchronously presents the iPad printing user interface in a popover view that can be animated from any area in a view. |
PresentFromRectInViewAsync(CGRect, UIView, Boolean)
Presents an iPad printing user interface in a particular popover view that can be animated from any specified area in a view.
public virtual System.Threading.Tasks.Task<UIKit.UIPrintInteractionResult> PresentFromRectInViewAsync (CoreGraphics.CGRect rect, UIKit.UIView view, bool animated);
abstract member PresentFromRectInViewAsync : CoreGraphics.CGRect * UIKit.UIView * bool -> System.Threading.Tasks.Task<UIKit.UIPrintInteractionResult>
override this.PresentFromRectInViewAsync : CoreGraphics.CGRect * UIKit.UIView * bool -> System.Threading.Tasks.Task<UIKit.UIPrintInteractionResult>
Parameters
- rect
- CGRect
A rectangle that defines an area from which a printing popover view is animated.
- view
- UIView
The view that provides the coordinate system for the specified rect.
- animated
- Boolean
to animate the printing popover view from the specified item, to display immediately.
Returns
A task that represents the asynchronous PresentFromRectInView operation. The value of the TResult parameter is of type UIKit.UIPrintInteractionResult. The return values of the asynch methods , , and .
Applies to
PresentFromRectInViewAsync(CGRect, UIView, Boolean, Boolean)
Asynchronously presents the iPad printing user interface in a popover view that can be animated from any area in a view.
public virtual System.Threading.Tasks.Task<UIKit.UIPrintInteractionResult> PresentFromRectInViewAsync (CoreGraphics.CGRect rect, UIKit.UIView view, bool animated, out bool result);
abstract member PresentFromRectInViewAsync : CoreGraphics.CGRect * UIKit.UIView * bool * -> System.Threading.Tasks.Task<UIKit.UIPrintInteractionResult>
override this.PresentFromRectInViewAsync : CoreGraphics.CGRect * UIKit.UIView * bool * -> System.Threading.Tasks.Task<UIKit.UIPrintInteractionResult>
Parameters
- rect
- CGRect
A rectangle that defines an area from which a printing popover view is animated.
- view
- UIView
The view that provides the coordinate system for the specified rect.
- animated
- Boolean
true
to animate the printing popover view from the specified item, false
to display immediately.
- result
- Boolean
The result of the present operation.
Returns
When printing options are already displayed, the printing-options popover view is hidden. You need to call the method again to display the options.