ITreeControl.SelectionMode

Syntax

SelectionMode: SelectionModeType;

Description

The SelectionMode property determines a mode of selection of component elements.

Comments

The multiple selection mode is used by default: SelectionModeType.MultiSelectStandard.

Example

Executing the example requires a form, the Button1 button on the form and the TreeList component named TreeList1. The example is a handler of the OnClick event for the button.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
    TreeList1.SelectionMode := SelectionModeType.SingleSelect;
End Sub Button1OnClick;

After executing the example, the single selection mode is enabled in the TreeList1 component.

See also:

ITreeControl