DashboardDesigner.CreateCustomItemBars(Type[]) Method
Adds custom item bars to the Ribbon.
Namespace: DevExpress.DashboardWin
Assembly: DevExpress.Dashboard.v23.2.Win.dll
NuGet Package: DevExpress.Win.Dashboard
Declaration
Parameters
Name | Type | Description |
---|---|---|
customItemMetadataTypes | Type[] | A metadata type that corresponds to a CustomItemMetadata class descendant. |
Remarks
The CreateCustomItemBars
method inserts a custom item’s bar into the Ribbon. Before you add a bar, make sure that you have registered the corresponding metadata type and created the Ribbon.
Call the CreateCustomItemBars
method to add bars for all custom items whose metadata is registered. To add bars for the corresponding custom items, pass their metadata as the customItemMetadataTypes
parameter.
using System.Windows.Forms;
using DevExpress.DashboardCommon;
using DevExpress.DashboardWin;
namespace TutorialsCustomItems {
public partial class Form1 : Form {
public Form1(){
InitializeComponent();
dashboardDesigner1.CreateRibbon();
dashboardDesigner1.CreateCustomItemBars();
}
}
}
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the CreateCustomItemBars(Type[]) method.
Note
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.