IDimElementArray.Selection

Syntax

Selection: IDimSelection;

Description

The Selection method creates dictionary selection consisting of array elements.

Example

Executing the example requires a form, a button named Button1 positioned on this form, the UiDimension component named UiDimension1, and some components using data of UiDimension1.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

Dimen: IDimInstance;

Elem: IDimElements;

ElemArr: IDimElementArray;

Selection: IDimSelection;

Begin

Dimen := UiDimension1.DimInstance;

Elem := Dimen.Elements;

ElemArr := Elem.Children(0);

Selection := ElemArr.Selection;

UiDimension1.Selection := Selection;

End Sub Button1OnClick;

After executing the example an element with the 0 index and all its child elements are selected in the UiDimension1 component.

See also:

IDimElementArray