Back to Devexpress

CustomItemImageAttribute Class

dashboard-devexpress-dot-dashboardcommon-4d9324ce.md

latest1.9 KB
Original Source

CustomItemImageAttribute Class

Specifies an icon for a custom item’s bar in the Ribbon.

Namespace : DevExpress.DashboardCommon

Assembly : DevExpress.Dashboard.v25.2.Core.dll

NuGet Package : DevExpress.Dashboard.Core

Declaration

csharp
[AttributeUsage(AttributeTargets.Class)]
public class CustomItemImageAttribute :
    Attribute
vb
<AttributeUsage(AttributeTargets.Class)>
Public Class CustomItemImageAttribute
    Inherits Attribute

Remarks

You can apply CustomItemImageAttribute to a CustomItemMetadata object when you create metadata for a custom dashboard item. The attribute identifies an icon for a custom item’s bar in the Ribbon. The file that is used for an icon must be embedded to an assembly where the file is located. Make sure the file’s Build Action property is set to Embedded Resource.

The way in which you can specify an icon depends on the icon file’s location:

  • The icon is located in the same assembly where the CustomItemMetadata object is defined.

  • The icon is located in another assembly.

Inheritance

Object Attribute CustomItemImageAttribute

See Also

CustomItemImageAttribute Members

CustomItemMetadata

DevExpress.DashboardCommon Namespace