SelectionMode: SelectionModeType;
SelectionMode: Prognoz.Platform.Interop.Forms.SelectionModeType;
The SelectionMode property determines a mode of selection of component elements.
The multiple selection mode is used by default: SelectionModeType.MultiSelectStandard.
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.
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: