PDEPlugIn.GetPanels(String, IPDEPlugInCallbackProtocol) Method

Definition

Returns an array of IPDEPanel instances for the specified panel type and host context.

[Foundation.Export("PDEPanelsForType:withHostInfo:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual PrintCore.IPDEPanel[]? GetPanels(string pdeType, PrintCore.IPDEPlugInCallbackProtocol host);
[<Foundation.Export("PDEPanelsForType:withHostInfo:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetPanels : string * PrintCore.IPDEPlugInCallbackProtocol -> PrintCore.IPDEPanel[]
override this.GetPanels : string * PrintCore.IPDEPlugInCallbackProtocol -> PrintCore.IPDEPanel[]

Parameters

pdeType
String

The type of print panels to create (for example, kGeneralPageSetupDialogTypeIDStr for page setup or kGeneralPrintDialogTypeIDStr for the print dialog).

host
IPDEPlugInCallbackProtocol

A print-system-provided instance implementing IPDEPlugInCallbackProtocol, used to obtain the current printer, print settings, or page format.

Returns

An array of IPDEPanel instances, or null if no panels should be used for the given type.

Implements

Attributes

Applies to