Back to Devexpress

MultiDimensionalData.GetDimensions(String) Method

dashboard-devexpress-dot-dashboardcommon-dot-viewerdata-dot-multidimensionaldata-dot-getdimensions-x28-system-dot-string-x29.md

latest3.6 KB
Original Source

MultiDimensionalData.GetDimensions(String) Method

Gets dimensions used to create a hierarchy of axis points for the specified axis.

Namespace : DevExpress.DashboardCommon.ViewerData

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

NuGet Package : DevExpress.Dashboard.Core

Declaration

csharp
public DimensionDescriptorCollection GetDimensions(
    string axisName
)
vb
Public Function GetDimensions(
    axisName As String
) As DimensionDescriptorCollection

Parameters

NameTypeDescription
axisNameString

A string value returned by the DashboardDataAxisNames class that specifies the name of the data axis.

|

Returns

TypeDescription
DimensionDescriptorCollection

A collection of DimensionDescriptor objects containing the dimension metadata.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetDimensions(String) 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#L65

csharp
ObservableCollection<GanttTask> ConfigureGanttTasks(MultiDimensionalData data) {
    DimensionDescriptorCollection dimensions = data.GetDimensions(DashboardDataAxisNames.DefaultAxis);
    MeasureDescriptorCollection measures = data.GetMeasures();

wpf-dashboard-how-to-embed-devexpress-control/VB/GanttSample/GanttViewModel.vb#L75

vb
Private Function ConfigureGanttTasks(ByVal data As MultiDimensionalData) As ObservableCollection(Of GanttTask)
    Dim dimensions As DimensionDescriptorCollection = data.GetDimensions(DashboardDataAxisNames.DefaultAxis)
    Dim measures As MeasureDescriptorCollection = data.GetMeasures()

See Also

GetMeasures()

GetDeltas()

MultiDimensionalData Class

MultiDimensionalData Members

DevExpress.DashboardCommon.ViewerData Namespace