Skip to main content

XtraMessageBoxArgs(UserLookAndFeel, IWin32Window, String, String, DialogResult[], Icon, Int32, DefaultBoolean, MessageBeepSound) Constructor

Initializes a new XtraMessageBoxArgs class instance.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

Declaration

public XtraMessageBoxArgs(
    UserLookAndFeel lookAndFeel = null,
    IWin32Window owner = null,
    string text = null,
    string caption = null,
    DialogResult[] buttons = null,
    Icon icon = null,
    int defaultButtonIndex = 0,
    DefaultBoolean allowHtmlText = DefaultBoolean.Default,
    MessageBeepSound beep = MessageBeepSound.None
)

Optional Parameters

Name Type Default Description
lookAndFeel UserLookAndFeel null

An object that specifies look and feel settings.

owner IWin32Window null

An IWin32Window object that provides look and feel settings for the dialog box.

text String null

The text in the message box.

caption String null

The text in the title bar.

buttons DialogResult[] null

An array of DialogResult values that specify which buttons to display in the input box.

icon Icon null

The icon in the title bar.

defaultButtonIndex Int32 0

An integer value that specifies the default button’s index in the buttons array.

allowHtmlText DefaultBoolean Default

True to parse HTML tags; False to display the plain text; Default to use the static (Shared in VB) XtraMessageBox.AllowHtmlText property.

beep DevExpress.XtraEditors.MessageBeepSound None

A value that specifies the system sound played when the input box is shown.

See Also