MeasureDefinition Class

A measure definition.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v21.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);
//...

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the MeasureDefinition class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Inheritance

Object
DataItemDefinition
MeasureDefinition
See Also