Table of Contents

Class PrintDialog

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class PrintDialog : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
PrintDialog
Implements
Inherited Members

Constructors

PrintDialog(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 PrintDialog(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

PrintDialog(CreationData)

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

Parameters

data CreationData

PrintDialog(PrintDialogHandle)

protected PrintDialog(PrintDialogHandle handle)

Parameters

handle PrintDialogHandle

Fields

AcceptLabelPropertyDefinition

public static readonly Property<string?, PrintDialog> AcceptLabelPropertyDefinition

Field Value

Property<string, PrintDialog>

ModalPropertyDefinition

public static readonly Property<bool, PrintDialog> ModalPropertyDefinition

Field Value

Property<bool, PrintDialog>

PageSetupPropertyDefinition

public static readonly Property<PageSetup?, PrintDialog> PageSetupPropertyDefinition

Field Value

Property<PageSetup, PrintDialog>

PrintSettingsPropertyDefinition

public static readonly Property<PrintSettings?, PrintDialog> PrintSettingsPropertyDefinition

Field Value

Property<PrintSettings, PrintDialog>

TitlePropertyDefinition

public static readonly Property<string?, PrintDialog> TitlePropertyDefinition

Field Value

Property<string, PrintDialog>

Properties

AcceptLabel

public string? AcceptLabel { get; set; }

Property Value

string

Modal

public bool Modal { get; set; }

Property Value

bool

PageSetup

public PageSetup? PageSetup { get; set; }

Property Value

PageSetup

PrintSettings

public PrintSettings? PrintSettings { get; set; }

Property Value

PrintSettings

Title

public string? Title { get; set; }

Property Value

string

Methods

GetAcceptLabel()

[Version("4.14")]
public string GetAcceptLabel()

Returns

string

GetGType()

public static Type GetGType()

Returns

Type

GetModal()

[Version("4.14")]
public bool GetModal()

Returns

bool

GetPageSetup()

[Version("4.14")]
public PageSetup? GetPageSetup()

Returns

PageSetup

GetPrintSettings()

[Version("4.14")]
public PrintSettings? GetPrintSettings()

Returns

PrintSettings

GetTitle()

[Version("4.14")]
public string GetTitle()

Returns

string

New()

[Version("4.14")]
public static PrintDialog New()

Returns

PrintDialog

NewFromPointer(nint, bool)

Creates a new managed PrintDialog instance for a given pointer.

public static PrintDialog NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

PrintDialog

NewWithProperties(ConstructArgument[])

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

public static PrintDialog NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

PrintDialog

PrintFileFinish(AsyncResult)

[Version("4.14")]
public bool PrintFileFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

bool

PrintFinish(AsyncResult)

[Version("4.14")]
public OutputStream PrintFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

OutputStream

SetAcceptLabel(string)

[Version("4.14")]
public void SetAcceptLabel(string acceptLabel)

Parameters

acceptLabel string

SetModal(bool)

[Version("4.14")]
public void SetModal(bool modal)

Parameters

modal bool

SetPageSetup(PageSetup)

[Version("4.14")]
public void SetPageSetup(PageSetup pageSetup)

Parameters

pageSetup PageSetup

SetPrintSettings(PrintSettings)

[Version("4.14")]
public void SetPrintSettings(PrintSettings printSettings)

Parameters

printSettings PrintSettings

SetTitle(string)

[Version("4.14")]
public void SetTitle(string title)

Parameters

title string

SetupFinish(AsyncResult)

[Version("4.14")]
public PrintSetup SetupFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

PrintSetup