IDimSelection.DeselectChildren

Syntax

DeselectChildren(Element: Integer; Recursive: Boolean);

Parameters

Element. Index of the dictionary element, which child elements should be removed from selection.

Recursive. Parameter that determines whether elements at all lower levels are removed from selection.

Description

The DeselectChildren method removes child elements from selection.

Comments

If the Recursive parameter is set to True, elements at all lower levels are removed from selection. If the parameter is set to False, only direct child elements positioned one level below the Element element are removed from selection.

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.SelectAll;
    Selection.DeselectChildren(11,True);
End Sub UserProc;

After executing the example all child elements of the eleventh dictionary element are removed from selection.

See also:

IDimSelection