次の方法で共有


UIPrintInteractionController.PrintPageRenderer プロパティ

定義

設定されている場合は、印刷に UIPrintPageRenderer の指定されたインスタンスを使用します。

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

プロパティ値

属性

注釈

UIPrintPageRenderer サブクラスを実装し、レンダラーのインスタンスを プロパティに PrintPageRenderer 割り当てる必要があります。

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

適用対象