CustomItemMetadata.GetCustomPropertyValue<T>(String) Method
Returns a custom property value.
Namespace: DevExpress.DashboardCommon
Assembly: DevExpress.Dashboard.v25.1.Core.dll
NuGet Package: DevExpress.Dashboard.Core
Declaration
Optional Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| propertyName | String | null | The custom property name from CustomItemMetadata. |
Type Parameters
| Name | Description |
|---|---|
| T | A custom property data type. |
Returns
| Type | Description |
|---|---|
| T | A custom property value. |
Remarks
The following code snippet shows how to declare a custom ShowLegend property in the CustomItemMetadata descendant:
using DevExpress.DashboardCommon;
namespace TutorialsCustomItems {
public class FunnelItemMetadata : CustomItemMetadata {
// ...
[ShowLegendCustom]
public bool ShowLegend {
get { return GetCustomPropertyValue<bool>(); }
set { SetCustomPropertyValue(value); }
}
}
}
See Also