Skip to main content

MeasureDefinition Class

A measure definition.

Namespace: DevExpress.DashboardCommon

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

Declaration

public class MeasureDefinition :
    DataItemDefinition

Remarks

The measure definition is used to identify the measure using the specified data member and summary type.

Create a new MeasureDefinition instance or obtain the definition of the existing measure in the [Measure.GetMeasureDefinition].

The following code snippet adds a new record to the color scheme that colors measures corresponding to the added measure definition:

//...
ColorSchemeEntry entry = new ColorSchemeEntry();
entry.DataSource = ds;
MeasureDefinition measureDefinition = new MeasureDefinition("Digit", SummaryType.Average);
entry.MeasureKey = new ColorSchemeMeasureKey(measureDefinition);
entry.ColorDefinition = new ColorDefinition(Color.Magenta);
dashboard.ColorScheme.Add(entry);
//...

Inheritance

Object
DataItemDefinition
MeasureDefinition
See Also