Skip to content

UIDropdown.SetItemEnabled(int, bool) Method

Definition

Namespace: Brine2D.UI

Enables or disables a single item by its index. Disabled items are rendered in DisabledItemColor and cannot be selected by mouse click or keyboard. If a currently selected item is disabled the selection is not automatically cleared — the developer should handle that case explicitly.

C#
public void SetItemEnabled(int index, bool enabled);

Parameters

index System.Int32

enabled System.Boolean