Show contents 

Dimensions > Dimensions Assembly Interfaces > IDimElementGroup > IDimElementGroup.Selection

IDimElementGroup.Selection

Syntax

Selection: IDimSelection;

Description

The Selection property returns the object that contains selection of dictionary element group.

Example

Sub UserProc;
Var
    MB: IMetabase;
    ElemGroup: IDimElementGroup;
    Sel: IDimSelection;
    i: Integer;
Begin
    MB:=MetabaseClass.Active;
    If MB.ItemById("D_TO").Children.Count<>0 Then
        ElemGroup:=MB.ItemById("D_TO").Children.Item(0).Bind As IDimElementGroup;
        Sel:=ElemGroup.Selection;
        i:=Sel.SelectedCount;
    End If;
End Sub UserProc;

After executing the example the "i" variable contains the number of selected elements in selection of the first group of dictionary elements.

See also:

IDimElementGroup