IDimSelection.SelectLevel

Syntax

SelectLevel(Element: Integer);

Parameters

Element. Dimension level.

Description

The SelectLevel method adds a dimension level to selection.

Comments

To work with dimension level properties, use the IDimLevelInstance interface.

Example

Executing the example requires that the repository contains a dictionary.

Place the following components on the form: UiDimension, DimensionTree, DimensionCombo named UiDimension1, DimensionTree1 and DimensionCombo1 respectively.

Set additional properties:

Add links to the Dimensions, ExtCtrls, and Forms system assemblies.

The example is a handler of the OnCreate event for the form.

Sub IDIMSELECTION_SELECTLEVEL_OnCreate(Sender: Object; Args: IEventArgs);
Begin
    
// Add the second level of dimension to selection
    DimensionTree1.Selection.SelectLevel(1);
End Sub IDIMSELECTION_SELECTLEVEL_OnCreate;

After executing the example the second level of dimension is selected on the form.

See also:

IDimSelection