Skip to main content
.NET 6.0+

ActionBase.PaintStyle Property

Specifies the Action‘s paint style.

Namespace: DevExpress.ExpressApp.Actions

Assembly: DevExpress.ExpressApp.v24.1.dll

NuGet Package: DevExpress.ExpressApp


public ActionItemPaintStyle PaintStyle { get; set; }

Property Value

Type Default Description
ActionItemPaintStyle Default

An ActionItemPaintStyle enumeration value that specifies the Action’s paint style.


Use one of the following approaches to specify this property:

  • In code

    using DevExpress.ExpressApp;
    using DevExpress.ExpressApp.Actions;
    using DevExpress.ExpressApp.Templates;
    using DevExpress.Persistent.Base;
    // ...
    public class MyController : ObjectViewController<ListView, Contact> {
        public MyController() {
            SimpleAction customAction = new SimpleAction(this, "CustomAction", PredefinedCategory.View) {
                Caption = "Custom Action",
                ImageName = "ModelEditor_Application"
            customAction.SelectionDependencyType = SelectionDependencyType.RequireSingleObject;
            customAction.PaintStyle = ActionItemPaintStyle.Caption;
  • In the Model Editor
    Navigate to an ActionDesign | Actions | <Action> node and specify the IModelAction.PaintStyle property.

Note that the value specified in the Model Editor has a higher priority than the value specified in code. For more information, refer to the following topic: Application Model Basics.

The following table shows the available paint styles:

Enumeration Value









in WinForms applications: Image
in ASP.NET Web Forms applications: Image
in ASP.NET Core Blazor applications: CaptionAndImage


WinForms applications with the Ribbon FormStyle ignore this property. In these applications, Actions always show both image and caption.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the PaintStyle property.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also