Show contents 

Dimensions > Dimensions Assembly Interfaces > IDimElementGroup > IDimElementGroup.Item

IDimElementGroup.Item

Syntax

Item(Index: Integer): IDimElementGroupPrimitive;

Parameters

Index. The primitive index of the elements group.

Description

The Item property returns the object that contains element group primitive.

Example

Sub Main;
Var
    MB: IMetabase;
    ElemGroup: IDimElementGroup;
    ElemGroupPrim: IDimElementGroupPrimitive;
    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;
        ElemGroupPrim:=ElemGroup.Item(0);
        i:=ElemGroupPrim.Selection.SelectedCount;
    End If;
End Sub Main;

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

See also:

IDimElementGroup