DashboardItemState.SelectedLayerIndex Property
Gets or sets an index of the selected dashboard item layer.
Namespace: DevExpress.DashboardCommon
Assembly: DevExpress.Dashboard.v24.1.Core.dll
NuGet Package: DevExpress.Dashboard.Core
Declaration
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:
// Set a dashboard item layer.
state.Items.Add(new DashboardItemState("treemapDashboardItem1") {
SelectedLayerIndex = 1
});
See Also