Skip to main content

XtraMessageBoxArgs.TextPadding Property

Gets or sets text padding within an XtraMessageBox.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public Padding TextPadding { get; set; }

Property Value

Type Description
Padding

Text padding.

Remarks

Use the Text property to specify XtraMessageBox text.

The TextPadding property sets the padding for this text.

MessageBoxTextPadding

The code below adjusts text padding.

using DevExpress.XtraEditors;
using System.Windows.Forms;
// ...
XtraMessageBoxArgs args = new XtraMessageBoxArgs();
// ...
args.TextPadding = new Padding(30, 10, 30, 10);
XtraMessageBox.Show(args);
See Also