IDimSelection.SelectChildren

Syntax

SelectChildren(Element: Integer; Recursive: Boolean);

Parameters

Element. Index of the element, which child elements should be added to the selection.

Recursive. The parameter that determines whether child elements at all lower levels will be added to the selection.

Description

The SelectChildren method adds child elements to selection.

Comments

If the Recursive parameter is set to True, all child objects at all levels are added. If parameter value is False, only child elements positioned one level below the Element element are added.

Example

Sub UserProc;
Var
    MB: IMetabase;
    Dimen: IDimInstance;
    Selection: IDimSelection;
Begin
    MB:=MetabaseClass.Active;
    Dimen:=MB.ItemById("D_TO").Open(NullAs IDimInstance;
    Selection:=Dimen.CreateSelection;
    Selection.SelectChildren(11,True);
    Selection.SelectChildren(30,True);
    Selection.SelectChildren(42,True);
    Selection.SelectChildren(56,True);
End Sub UserProc;

After executing the example all child objects of the four elements are added to the Selection selection.

See also:

IDimSelection