CustomItemMetadataTypes.Register<T>() Method
Adds a metadata type to the CustomItemMetadataTypes collection.
Namespace: DevExpress.DashboardCommon
Assembly: DevExpress.Dashboard.v24.1.Core.dll
NuGet Package: DevExpress.Dashboard.Core
Declaration
Type Parameters
Name | Description |
---|---|
T | A CustomItemMetadata object. |
Remarks
Pass a new metadata type to the Register<T>()
method. You should call the method before the main application form is created. The following code snippet shows how to register the CustomFunnelMetadata
metadata type:
using DevExpress.XtraEditors;
using System;
using System.Windows.Forms;
using DevExpress.DashboardCommon;
namespace CustomItemsSample {
static class Program {
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main() {
//...
Dashboard.CustomItemMetadataTypes.Register<CustomFunnelMetadata>();
Application.Run(new Form1());
}
}
}
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Register<T>() 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.