Skip to main content

DashboardItemState.SelectedLayerIndex Property

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

Namespace: DevExpress.DashboardCommon

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

NuGet Packages: DevExpress.Dashboard.Core, DevExpress.Win.Dashboard.Design


public int SelectedLayerIndex { get; set; }

Property Value

Type Description

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


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:

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