Table of Contents

Class MessageDialog

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class MessageDialog : Dialog, Accessible, Buildable, ConstraintTarget, Native, Root, ShortcutManager, NativeObject, IDisposable, GTypeProvider, InstanceFactory
Inheritance
MessageDialog
Implements
Inherited Members

Constructors

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

Parameters

constructArguments ConstructArgument[]

MessageDialog(CreationData)

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

Parameters

data CreationData

MessageDialog(MessageDialogHandle)

protected MessageDialog(MessageDialogHandle handle)

Parameters

handle MessageDialogHandle

Fields

MessageAreaPropertyDefinition

public static readonly Property<Widget?, MessageDialog> MessageAreaPropertyDefinition

Field Value

Property<Widget, MessageDialog>

MessageTypePropertyDefinition

public static readonly Property<MessageType, MessageDialog> MessageTypePropertyDefinition

Field Value

Property<MessageType, MessageDialog>

SecondaryTextPropertyDefinition

public static readonly Property<string?, MessageDialog> SecondaryTextPropertyDefinition

Field Value

Property<string, MessageDialog>

SecondaryUseMarkupPropertyDefinition

public static readonly Property<bool, MessageDialog> SecondaryUseMarkupPropertyDefinition

Field Value

Property<bool, MessageDialog>

TextPropertyDefinition

public static readonly Property<string?, MessageDialog> TextPropertyDefinition

Field Value

Property<string, MessageDialog>

UseMarkupPropertyDefinition

public static readonly Property<bool, MessageDialog> UseMarkupPropertyDefinition

Field Value

Property<bool, MessageDialog>

Properties

AccessibleRole

public AccessibleRole AccessibleRole { get; set; }

Property Value

AccessibleRole

MessageArea

public Widget? MessageArea { get; }

Property Value

Widget

MessageType

public MessageType MessageType { get; set; }

Property Value

MessageType

SecondaryText

public string? SecondaryText { get; set; }

Property Value

string

SecondaryUseMarkup

public bool SecondaryUseMarkup { get; set; }

Property Value

bool

Text

public string? Text { get; set; }

Property Value

string

UseMarkup

public bool UseMarkup { get; set; }

Property Value

bool

Methods

Announce(string, AccessibleAnnouncementPriority)

[Version("4.14")]
public void Announce(string message, AccessibleAnnouncementPriority priority)

Parameters

message string
priority AccessibleAnnouncementPriority

GetAccessibleParent()

[Version("4.10")]
public Accessible? GetAccessibleParent()

Returns

Accessible

GetAccessibleRole()

public AccessibleRole GetAccessibleRole()

Returns

AccessibleRole

GetAtContext()

[Version("4.10")]
public ATContext GetAtContext()

Returns

ATContext

GetBounds(out int, out int, out int, out int)

[Version("4.10")]
public bool GetBounds(out int x, out int y, out int width, out int height)

Parameters

x int
y int
width int
height int

Returns

bool

GetBuildableId()

public string? GetBuildableId()

Returns

string

GetDisplay()

public Display GetDisplay()

Returns

Display

GetFirstAccessibleChild()

[Version("4.10")]
public Accessible? GetFirstAccessibleChild()

Returns

Accessible

GetGType()

public static Type GetGType()

Returns

Type

GetMessageArea()

public Widget GetMessageArea()

Returns

Widget

GetNextAccessibleSibling()

[Version("4.10")]
public Accessible? GetNextAccessibleSibling()

Returns

Accessible

GetPlatformState(AccessiblePlatformState)

[Version("4.10")]
public bool GetPlatformState(AccessiblePlatformState state)

Parameters

state AccessiblePlatformState

Returns

bool

GetRenderer()

public Renderer? GetRenderer()

Returns

Renderer

GetSurface()

public Surface? GetSurface()

Returns

Surface

GetSurfaceTransform(out double, out double)

public void GetSurfaceTransform(out double x, out double y)

Parameters

x double
y double

NewFromPointer(nint, bool)

Creates a new managed MessageDialog instance for a given pointer.

public static MessageDialog NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

MessageDialog

NewWithProperties(ConstructArgument[])

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

public static MessageDialog NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

MessageDialog

Realize()

public void Realize()

ResetProperty(AccessibleProperty)

public void ResetProperty(AccessibleProperty property)

Parameters

property AccessibleProperty

ResetRelation(AccessibleRelation)

public void ResetRelation(AccessibleRelation relation)

Parameters

relation AccessibleRelation

ResetState(AccessibleState)

public void ResetState(AccessibleState state)

Parameters

state AccessibleState

SetAccessibleParent(Accessible?, Accessible?)

[Version("4.10")]
public void SetAccessibleParent(Accessible? parent, Accessible? nextSibling)

Parameters

parent Accessible
nextSibling Accessible

SetMarkup(string)

public void SetMarkup(string str)

Parameters

str string

Unrealize()

public void Unrealize()

UpdateNextAccessibleSibling(Accessible?)

[Version("4.10")]
public void UpdateNextAccessibleSibling(Accessible? newSibling)

Parameters

newSibling Accessible

UpdatePlatformState(AccessiblePlatformState)

[Version("4.18")]
public void UpdatePlatformState(AccessiblePlatformState state)

Parameters

state AccessiblePlatformState