Skip to main content

DashboardItemState.SelectedLayerIndex Property

Gets or sets an index of the selected dashboard item layer.

Namespace: DevExpress.DashboardCommon

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

NuGet Package: DevExpress.Dashboard.Core

#Declaration

public int SelectedLayerIndex { get; set; }

#Property Value

Type Description
Int32

An integer value that specifies an index of the selected layer.

#Remarks

The SelectedLayerIndex property is in effect for the following dashboard items that allow end-users to switch between different layers:

The following code snippet switches a Treemap item to the second layer:

C#
  // Set a dashboard item layer.
state.Items.Add(new DashboardItemState("treemapDashboardItem1") {
    SelectedLayerIndex = 1
});
See Also