Class AlertDialog
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class AlertDialog : Object, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
AlertDialog
- Implements
-
- Inherited Members
-
Constructors
AlertDialog(params ConstructArgument[])
public AlertDialog(params ConstructArgument[] constructArguments)
Parameters
constructArguments
ConstructArgument[]
AlertDialog(AlertDialogHandle)
public AlertDialog(AlertDialogHandle handle)
Parameters
handle
AlertDialogHandle
Fields
public static readonly Property<string[], AlertDialog> ButtonsPropertyDefinition
Field Value
- Property<string[], AlertDialog>
public static readonly Property<int, AlertDialog> CancelButtonPropertyDefinition
Field Value
- Property<int, AlertDialog>
public static readonly Property<int, AlertDialog> DefaultButtonPropertyDefinition
Field Value
- Property<int, AlertDialog>
DetailPropertyDefinition
public static readonly Property<string?, AlertDialog> DetailPropertyDefinition
Field Value
- Property<string, AlertDialog>
MessagePropertyDefinition
public static readonly Property<string?, AlertDialog> MessagePropertyDefinition
Field Value
- Property<string, AlertDialog>
ModalPropertyDefinition
public static readonly Property<bool, AlertDialog> ModalPropertyDefinition
Field Value
- Property<bool, AlertDialog>
Properties
public string[] Buttons { get; set; }
Property Value
- string[]
public int CancelButton { get; set; }
Property Value
- int
public int DefaultButton { get; set; }
Property Value
- int
Detail
public string? Detail { get; set; }
Property Value
- string
Message
public string? Message { get; set; }
Property Value
- string
Modal
public bool Modal { get; set; }
Property Value
- bool
Methods
ChooseAsync(Window)
public Task<int> ChooseAsync(Window parent)
Parameters
parent
Window
Returns
- Task<int>
ChooseFinish(AsyncResult)
[Version("4.10")]
public int ChooseFinish(AsyncResult result)
Parameters
result
AsyncResult
Returns
- int
[Version("4.10")]
public string[]? GetButtons()
Returns
- string[]
[Version("4.10")]
public int GetCancelButton()
Returns
- int
[Version("4.10")]
public int GetDefaultButton()
Returns
- int
GetDetail()
[Version("4.10")]
public string GetDetail()
Returns
- string
GetGType()
public static Type GetGType()
Returns
- Type
GetMessage()
[Version("4.10")]
public string GetMessage()
Returns
- string
GetModal()
[Version("4.10")]
public bool GetModal()
Returns
- bool
[Version("4.10")]
public void SetButtons(string[] labels)
Parameters
labels
string[]
[Version("4.10")]
public void SetCancelButton(int button)
Parameters
button
int
[Version("4.10")]
public void SetDefaultButton(int button)
Parameters
button
int
SetDetail(string)
[Version("4.10")]
public void SetDetail(string detail)
Parameters
detail
string
SetMessage(string)
[Version("4.10")]
public void SetMessage(string message)
Parameters
message
string
SetModal(bool)
[Version("4.10")]
public void SetModal(bool modal)
Parameters
modal
bool
Show(Window?)
[Version("4.10")]
public void Show(Window? parent)
Parameters
parent
Window