Skip to main content

IBarGroup.IconUrl Property

Specifies the URL of the item group’s icon.

Namespace: DevExpress.Blazor.Office

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor

Declaration

string IconUrl { get; set; }

Property Value

Type Description
String

The icon’s URL.

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 code below demonstrates how to specify the URL of a custom group’s icon:

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

@code {
    void OnCustomizeToolbar(IToolbar toolbar) {
        BarGroupCollection groups = toolbar.Groups;
        IBarGroup clipboarGroup = groups.AddCustomGroup();
        clipboarGroup.IconUrl = "your-icon-url";
        clipboarGroup.Items.Add(RichEditBarItemNames.CopySelection);
        clipboarGroup.Items.Add(RichEditBarItemNames.Paste);
    }
}
See Also