Back to Devexpress

DashboardItemState.SelectedLayerIndex Property

dashboard-devexpress-dot-dashboardcommon-dot-dashboarditemstate-20b7bf7e.md

latest2.3 KB
Original Source

DashboardItemState.SelectedLayerIndex Property

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

Namespace : DevExpress.DashboardCommon

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

NuGet Package : DevExpress.Dashboard.Core

Declaration

csharp
public int SelectedLayerIndex { get; set; }
vb
Public Property SelectedLayerIndex As Integer

Property Value

TypeDescription
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:

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

See Also

DashboardItemState Class

DashboardItemState Members

DevExpress.DashboardCommon Namespace