dashboard-devexpress-dot-dashboardcommon-dot-viewerdata-dot-multidimensionaldata-dot-getdimensions-x28-system-dot-string-x29.md
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
public DimensionDescriptorCollection GetDimensions(
string axisName
)
Public Function GetDimensions(
axisName As String
) As DimensionDescriptorCollection
| Name | Type | Description |
|---|---|---|
| axisName | String |
A string value returned by the DashboardDataAxisNames class that specifies the name of the data axis.
|
| Type | Description |
|---|---|
| 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
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
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