Skip to main content
All docs
V25.1
  • XtraMessageBoxArgs.IconPadding Property

    Gets or sets padding for an XtraMessageBox icon.

    Namespace: DevExpress.XtraEditors

    Assembly: DevExpress.XtraEditors.v25.1.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