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
constructArgumentsConstructArgument[]
PrintDialog(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected PrintDialog(CreationData data)
Parameters
dataCreationData
PrintDialog(PrintDialogHandle)
protected PrintDialog(PrintDialogHandle handle)
Parameters
handlePrintDialogHandle
Fields
AcceptLabelPropertyDefinition
public static readonly Property<string?, PrintDialog> AcceptLabelPropertyDefinition
Field Value
ModalPropertyDefinition
public static readonly Property<bool, PrintDialog> ModalPropertyDefinition
Field Value
PageSetupPropertyDefinition
public static readonly Property<PageSetup?, PrintDialog> PageSetupPropertyDefinition
Field Value
PrintSettingsPropertyDefinition
public static readonly Property<PrintSettings?, PrintDialog> PrintSettingsPropertyDefinition
Field Value
TitlePropertyDefinition
public static readonly Property<string?, PrintDialog> TitlePropertyDefinition
Field Value
Properties
AcceptLabel
public string? AcceptLabel { get; set; }
Property Value
Modal
public bool Modal { get; set; }
Property Value
PageSetup
public PageSetup? PageSetup { get; set; }
Property Value
PrintSettings
public PrintSettings? PrintSettings { get; set; }
Property Value
Title
public string? Title { get; set; }
Property Value
Methods
GetAcceptLabel()
[Version("4.14")]
public string GetAcceptLabel()
Returns
GetGType()
public static Type GetGType()
Returns
GetModal()
[Version("4.14")]
public bool GetModal()
Returns
GetPageSetup()
[Version("4.14")]
public PageSetup? GetPageSetup()
Returns
GetPrintSettings()
[Version("4.14")]
public PrintSettings? GetPrintSettings()
Returns
GetTitle()
[Version("4.14")]
public string GetTitle()
Returns
New()
[Version("4.14")]
public static PrintDialog New()
Returns
NewFromPointer(nint, bool)
Creates a new managed PrintDialog instance for a given pointer.
public static PrintDialog NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new PrintDialog and sets the properties specified by the construct arguments.
public static PrintDialog NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
PrintFileFinish(AsyncResult)
[Version("4.14")]
public bool PrintFileFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
PrintFinish(AsyncResult)
[Version("4.14")]
public OutputStream PrintFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
SetAcceptLabel(string)
[Version("4.14")]
public void SetAcceptLabel(string acceptLabel)
Parameters
acceptLabelstring
SetModal(bool)
[Version("4.14")]
public void SetModal(bool modal)
Parameters
modalbool
SetPageSetup(PageSetup)
[Version("4.14")]
public void SetPageSetup(PageSetup pageSetup)
Parameters
pageSetupPageSetup
SetPrintSettings(PrintSettings)
[Version("4.14")]
public void SetPrintSettings(PrintSettings printSettings)
Parameters
printSettingsPrintSettings
SetTitle(string)
[Version("4.14")]
public void SetTitle(string title)
Parameters
titlestring
SetupFinish(AsyncResult)
[Version("4.14")]
public PrintSetup SetupFinish(AsyncResult result)
Parameters
resultAsyncResult