IDimSelection.DeselectParent

Syntax

DeselectParent(Element: Integer; Recursive: Boolean);

Parameters

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

Recursive. Indicates whether parent elements at all upper levels are removed from selection.

Description

The DeselectParent method deselects parent elements.

Comments

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

Example

Executing the example requires that the repository contains a web form, the Button1 button on the form, and the WebDimensionTree component named DimensionTree1. A dictionary with elements located on several levels is connected to the DimensionTree1 component.

Add links to the Dimensions and WebForms system assemblies.

Sub Button1OnClick;
Begin
    DimensionTree1.Selection.DeselectParent(3False);
End Sub Button1OnClick;

After executing the example the direct parent element with the specified index is deselected.

See also:

IDimSelection