Class AlertDialog
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class AlertDialog : Object, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
- Inheritance
-
AlertDialog
- Implements
-
- Inherited Members
-
Constructors
AlertDialog(bool, params ConstructArgument[])
protected AlertDialog(bool owned, params ConstructArgument[] constructArguments)
Parameters
owned
bool
constructArguments
ConstructArgument[]
AlertDialog(IntPtr, bool)
protected AlertDialog(IntPtr ptr, bool ownedRef)
Parameters
ptr
IntPtr
ownedRef
bool
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
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