Table of Contents

Class PrintOperation

Namespace
WebKit
Assembly
WebKit-6.0.dll
public sealed class PrintOperation : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
PrintOperation
Implements
Inherited Members

Constructors

PrintOperation(params ConstructArgument[])

[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public PrintOperation(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

PrintOperation(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected PrintOperation(CreationData data)

Parameters

data CreationData

PrintOperation(PrintOperationHandle)

protected PrintOperation(PrintOperationHandle handle)

Parameters

handle PrintOperationHandle

Fields

FailedSignal

Signal Descriptor for OnFailed.

public static readonly Signal<PrintOperation, PrintOperation.FailedSignalArgs> FailedSignal

Field Value

Signal<PrintOperation, PrintOperation.FailedSignalArgs>

FinishedSignal

Signal Descriptor for OnFinished.

public static readonly Signal<PrintOperation> FinishedSignal

Field Value

Signal<PrintOperation>

PageSetupPropertyDefinition

public static readonly Property<PageSetup?, PrintOperation> PageSetupPropertyDefinition

Field Value

Property<PageSetup, PrintOperation>

PrintSettingsPropertyDefinition

public static readonly Property<PrintSettings?, PrintOperation> PrintSettingsPropertyDefinition

Field Value

Property<PrintSettings, PrintOperation>

WebViewPropertyDefinition

public static readonly Property<WebView?, PrintOperation> WebViewPropertyDefinition

Field Value

Property<WebView, PrintOperation>

Properties

PageSetup

public PageSetup? PageSetup { get; set; }

Property Value

PageSetup

PrintSettings

public PrintSettings? PrintSettings { get; set; }

Property Value

PrintSettings

WebView

public WebView? WebView { get; }

Property Value

WebView

Methods

GetGType()

public static Type GetGType()

Returns

Type

GetPageSetup()

public PageSetup GetPageSetup()

Returns

PageSetup

GetPrintSettings()

public PrintSettings GetPrintSettings()

Returns

PrintSettings

New(WebView)

public static PrintOperation New(WebView webView)

Parameters

webView WebView

Returns

PrintOperation

NewFromPointer(nint, bool)

Creates a new managed PrintOperation instance for a given pointer.

public static PrintOperation NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

PrintOperation

NewWithProperties(ConstructArgument[])

Creates a new PrintOperation and sets the properties specified by the construct arguments.

public static PrintOperation NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

PrintOperation

Print()

public void Print()

RunDialog(Window?)

public PrintOperationResponse RunDialog(Window? parent)

Parameters

parent Window

Returns

PrintOperationResponse

SetPageSetup(PageSetup)

public void SetPageSetup(PageSetup pageSetup)

Parameters

pageSetup PageSetup

SetPrintSettings(PrintSettings)

public void SetPrintSettings(PrintSettings printSettings)

Parameters

printSettings PrintSettings

Events

OnFailed

public event SignalHandler<PrintOperation, PrintOperation.FailedSignalArgs> OnFailed

Event Type

SignalHandler<PrintOperation, PrintOperation.FailedSignalArgs>

OnFinished

public event SignalHandler<PrintOperation> OnFinished

Event Type

SignalHandler<PrintOperation>