Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

XtraMessageBoxArgs.TextPadding Property

Gets or sets text padding within an XtraMessageBox.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.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