Compartir a través de


UIPrintInteractionController.PrintPageRenderer Propiedad

Definición

Si se establece, use la instancia especificada de UIPrintPageRenderer para imprimir.

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

Valor de propiedad

Atributos

Comentarios

Debe implementar una subclase de UIPrintPageRenderer y asignar la instancia del representador a la PrintPageRenderer propiedad .

// 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);

Se aplica a