windowsforms-devexpress-dot-xtraeditors-dot-xtrabaseargs-a459c046.md
Gets or sets the shown object (XtraMessageBox, XtraInputBox, etc.) caption.
Namespace : DevExpress.XtraEditors
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
public string Caption { get; set; }
Public Property Caption As String
| Type | Description |
|---|---|
| String |
The owner caption.
|
Caption string can be formatted with HTML-inspired tags.
XtraMessageBoxArgs xma = new XtraMessageBoxArgs();
xma.Caption = "<b><color=green>Greed Bold Title</color></b>";
xma.Text = "<color=red><size=+4>Increased red content text</size></color>";
xma.AllowHtmlText = DevExpress.Utils.DefaultBoolean.True;
XtraMessageBox.Show(xma);
Dim xma As New XtraMessageBoxArgs()
xma.Caption = "<b><color=green>Greed Bold Title</color></b>"
xma.Text = "<color=red><size=+4>Increased red content text</size></color>"
xma.AllowHtmlText = DevExpress.Utils.DefaultBoolean.True
XtraMessageBox.Show(xma)
See Also