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.IconPadding Property

Gets or sets padding for an XtraMessageBox icon.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public Padding IconPadding { get; set; }

#Property Value

Type Description
Padding

Message box icon padding.

#Remarks

Use the ImageOptions property to display an image in the message.

The IconPadding property sets the padding for this icon.

MessageBoxIconPadding

The code below adjusts icon padding.

using DevExpress.XtraEditors;
using System.Windows.Forms;
// ...
XtraMessageBoxArgs args = new XtraMessageBoxArgs();
// ...
args.IconPadding = new Padding(0, 5, 0, 0);
XtraMessageBox.Show(args);
See Also