Back to Devexpress

XtraBaseArgs.Caption Property

windowsforms-devexpress-dot-xtraeditors-dot-xtrabaseargs-a459c046.md

latest1.8 KB
Original Source

XtraBaseArgs.Caption Property

Gets or sets the shown object (XtraMessageBox, XtraInputBox, etc.) caption.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public string Caption { get; set; }
vb
Public Property Caption As String

Property Value

TypeDescription
String

The owner caption.

|

Remarks

Caption string can be formatted with HTML-inspired tags.

csharp
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);
vb
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

XtraBaseArgs Class

XtraBaseArgs Members

DevExpress.XtraEditors Namespace