Edit

Share via


UIPrintInteractionController.PrintPageRenderer Property

Definition

If set, use the specified instance of UIPrintPageRenderer for printing.

public virtual UIKit.UIPrintPageRenderer PrintPageRenderer { [Foundation.Export("printPageRenderer", ObjCRuntime.ArgumentSemantic.Strong)] get; [Foundation.Export("setPrintPageRenderer:", ObjCRuntime.ArgumentSemantic.Strong)] set; }
member this.PrintPageRenderer : UIKit.UIPrintPageRenderer with get, set

Property Value

Attributes

Remarks

You must implement a subclass of UIPrintPageRenderer and assign the instance of your renderer to the PrintPageRenderer property.

// Get a reference to the singleton iOS printing concierge
UIPrintInteractionController printController = UIPrintInteractionController.SharedPrintController;

// Instruct the printing concierge to use our custom UIPrintPageRenderer subclass when printing this job
printController.PrintPageRenderer = new MyPrintPageRenderer (myData);

// Ask for a print job object and configure its settings to tailor the print request
UIPrintInfo info = UIPrintInfo.PrintInfo;

// B&W or color, normal quality output for mixed text, graphics, and images
info.OutputType = UIPrintInfoOutputType.General;

// Select the job named this in the printer queue to cancel our print request.
info.JobName = "Recipes";

// Instruct the printing concierge to use our custom print job settings.
printController.PrintInfo = info;

// Present the standard iOS Print Panel that allows you to pick the target Printer, number of pages, double-sided, etc.
printController.Present (true, PrintingCompleted);

Applies to