DeselectChildren(Element: Integer; Recursive: Boolean);
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.
The DeselectChildren method removes child elements from selection.
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.
Sub UserProc;
Var
MB: IMetabase;
Dimen: IDimInstance;
Selection: IDimSelection;
Begin
MB:=MetabaseClass.Active;
Dimen:=MB.ItemById("D_TO").Open(Null) As 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: