IDimSelection.SelectParent

Syntax

SelectParent(Element: Integer; Recursive: Boolean);

Parameters

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

Recursive. Indicates whether parent elements at all upper levels are added to the selection.

Description

The SelectParent method adds parent elements to the selection.

Comments

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

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.SelectParent(3False);
End Sub Button1OnClick;

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

See also:

IDimSelection