dashboard-devexpress-dot-dashboardcommon-dot-viewerdata-dot-multidimensionaldata-dot-getvalue-x28-devexpress-dot-dashboardcommon-dot-viewerdata-dot-measuredescriptor-x29.md
Gets the summary value for the specified measure.
Namespace : DevExpress.DashboardCommon.ViewerData
Assembly : DevExpress.Dashboard.v25.2.Core.dll
NuGet Package : DevExpress.Dashboard.Core
public MeasureValue GetValue(
MeasureDescriptor measure
)
Public Function GetValue(
measure As MeasureDescriptor
) As MeasureValue
| Name | Type | Description |
|---|---|---|
| measure | MeasureDescriptor |
A MeasureDescriptor object that contains the measure metadata.
|
| Type | Description |
|---|---|
| MeasureValue |
A MeasureValue object that contains the measure value and display text.
|
Use the MultiDimensionalData.GetMeasures method to obtain measures available in the current MultiDimensionalData object.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetValue(MeasureDescriptor) method.
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.
wpf-dashboard-how-to-embed-devexpress-control/CS/GanttSample/GanttViewModel.cs#L85
keys.Add(currentKey);
data.GetSlice(row).GetValue(measures[0]);
tasks.Add(new GanttTask() {
wpf-dashboard-how-to-embed-devexpress-control/VB/GanttSample/GanttViewModel.vb#L95
keys.Add(currentKey)
data.GetSlice(row).GetValue(measures(0))
tasks.Add(New GanttTask() With {.Id = keys.IndexOf(currentKey), .ParentId = keys.IndexOf(parentKey), .Name = row.GetDimensionValue(dimension).DisplayText, .Start = DirectCast(data.GetSlice(row).GetValue(measures(0)).Value, Date), .Finish = DirectCast(data.GetSlice(row).GetValue(measures(1)).Value, Date)})
See Also