IRdsDictionaryBox.SelectionMode

Fore Syntax

SelectionMode: SelectionModeType;

Fore.NET Syntax

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

Description

The SelectionMode property determines the mode of selecting component elements.

Comments

Default mode of a multiple selection: SelectionModeType.MultiSelectStandard.

Fore Example

Executing the example requires a form with the Button1 button, the RdsDictionaryBox component named RdsDictionaryBox1, and the UiRdsDictionary component that is a data source for RdsDictionaryBox1.Example is a handler of the OnClick event for a button.

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

After executing the example mode of a singular selection is enabled in the RdsDictionaryBox1 component.

Fore.NET Example

Executing the example requires a .NET form with the button1 button, the RdsDictionaryBoxNet component named rdsDictionaryBoxNet1, and the UiRdsDictionaryNet component, that is a data source for rdsDictionaryBoxNet1. Example is a handler of the Click event for the button.

Imports Prognoz.Platform.Interop.Forms;

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Begin
    rdsDictionaryBoxNet1.CtrlBox.SelectionMode := SelectionModeType.smtSingleSelect;
End Sub;

After executing the example mode of a singular selection is enabled in the rdsDictionaryBoxNet1 component.

See also:

IRdsDictionaryBox