CustomItemMetadata.SetPropertyValue(DataItem, String) Method
Applies an individual data section property value.
Namespace: DevExpress.DashboardCommon
Assembly: DevExpress.Dashboard.v24.1.Core.dll
NuGet Package: DevExpress.Dashboard.Core
Declaration
Parameters
Name | Type | Description |
---|---|---|
newValue | DataItem | A measure or dimension whose values are displayed in a custom item. |
Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
propertyName | String | null | The data section property name from CustomItemMetadata. |
Remarks
The following code snippet shows how to declare an individual data section Weight
, Target
and Source
properties in the CustomItemMetadata descendant:
using DevExpress.DashboardCommon;
namespace CustomItemsSample {
public class SankeyItemMetadata : CustomItemMetadata {
public Measure Weight {
get { return GetPropertyValue<Measure>(); }
set { SetPropertyValue(value); }
}
public Dimension Target {
get { return GetPropertyValue<Dimension>(); }
set { SetPropertyValue(value); }
}
public Dimension Source {
get { return GetPropertyValue<Dimension>(); }
set { SetPropertyValue(value); }
}
}
}
See Also