ITreeControl.SelectionMode

Fore Syntax

SelectionMode: SelectionModeType;

Fore.NET Syntax

SelectionMode: Prognoz.Platform.Interop.Forms.SelectionModeType;

Description

The SelectionMode property determines the mode of selection of the elements in the component.

Comments

By default the multiple selection mode is used: SelectionModeType.MultiSelectStandard.

Fore Example

Executing the example requires a form, the Button1 button on this 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.

Fore.NET Example

The requirements and result of the Fore.NET Example execution match with those in the Fore Example. Use Fore.NET analogs instead of Fore components.

Imports Prognoz.Platform.Interop.Forms;
...
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Begin
    TreeListNet1.SelectionMode := SelectionModeType.smtSingleSelect;
End Sub;

See also:

ITreeControl