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

IBarGroup.IconCssClass Property

Specifies the CSS class of the item group’s icon.

Namespace: DevExpress.Blazor.Office

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
string IconCssClass { get; set; }

#Property Value

Type Description
String

The icon’s CSS class.

#Remarks

DevExpress Blazor components support pre-defined icon sets (such as Iconic or Bootstrap-recommended libraries) and custom icon libraries. Refer to the following topic for more information: Icons.

Use any of the following properties to set an item group’s icon:

IconUrl
Specifies the URL of the item group’s icon.
IconCssClass
Specifies the CSS class of the item group’s icon. The IconCssClass property is not in effect if the IconUrl property value differs from null or empty string.

The following code snippet specifies an icon’s CSS class of a custom item group:

<DxRichEdit BarMode=BarMode.Toolbar CustomizeToolbar=OnCustomizeToolbar/>

@code {
    void OnCustomizeToolbar(IToolbar toolbar) {
        IBarGroup clipboarGroup = toolbar.Groups.AddCustomGroup();
        clipboarGroup.IconCssClass = "copy";
        clipboarGroup.Items.Add(RichEditBarItemNames.CopySelection);
        clipboarGroup.Items.Add(RichEditBarItemNames.Paste);
    }
}
See Also