IDimensionViewerBase.AutoExpandDepth

Syntax

AutoExpandDepth: Integer;

Description

The AutoExpandDepth property determines the number of dimension level that is automatically expanded on appearing a drop-down component list.

Comments

If the specified property value exceeds the number of dimension levels, all levels are expanded.

To expand the hierarchy of tree children of the specified node, use the IDimensionViewerBase.Expand method.

Example

Executing the example requires a form with the Button1 button and the MetaAttributesBreadcrumb component named MetaAttributesBreadcrumb1. MetaAttributesBreadcrumb1 is connected to a time series database.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    DV: IDimensionViewerBase;
Begin
    DV := MetaAttributesBreadcrumb1.DimensionViewer;
    //Level, which hierarchy will be expanded
    DV.AutoExpandDepth := 1;
    //Element that will be focused
    DV.FocusedElement := 10;
End Sub Button1OnClick;

Clicking the button determines drop-down list open parameters for the MetaAtrributesBreadCrumb1 component. On opening the first element level is expanded, and the element with the 10 index is focused.

See also:

IDimensionViewerBase