Bewerken

Delen via


UIPrintInteractionController.PresentFromRectInView Method

Definition

Presents an iPad printing user interface in a particular popover view that can be animated from any specified area in a view.

[Foundation.Export("presentFromRect:inView:animated:completionHandler:")]
public virtual bool PresentFromRectInView (CoreGraphics.CGRect rect, UIKit.UIView view, bool animated, UIKit.UIPrintInteractionCompletionHandler completion);
abstract member PresentFromRectInView : CoreGraphics.CGRect * UIKit.UIView * bool * UIKit.UIPrintInteractionCompletionHandler -> bool
override this.PresentFromRectInView : CoreGraphics.CGRect * UIKit.UIView * bool * UIKit.UIPrintInteractionCompletionHandler -> bool

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.

completion
UIPrintInteractionCompletionHandler

Implemented to handle the conclusion of the print job.

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.

Attributes

Applies to