Skip to main content
All docs
V24.1

CustomItemMetadata.GetPropertyValue<T>(String) Method

Returns an individual data section property value.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v24.1.Core.dll

NuGet Package: DevExpress.Dashboard.Core

Declaration

protected T GetPropertyValue<T>(
    string propertyName = null
)
    where T : DataItem

Optional Parameters

Name Type Default Description
propertyName String null

The data section property name from CustomItemMetadata.

Type Parameters

Name Description
T

A property data type.

Returns

Type Description
T

A data section property value.

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