CustomItemMetadata.GetCustomPropertyValue<T>(String) Method
In This Article
Returns a custom property value.
Namespace: DevExpress.DashboardCommon
Assembly: DevExpress.Dashboard.v24.2.Core.dll
NuGet Package: DevExpress.Dashboard.Core
#Declaration
#Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
property |
String | null | The custom property name from Custom |
#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