AutoExpandDepth: Integer;
AutoExpandDepth: integer;
The AutoExpandDepth property determines the number of dimension level that is automatically expanded on appearing a drop-down component list.
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.
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.
The requirements and result of the Fore.NET example execution match with those in the Fore example. Use Fore.NET analogs instead of Fore components.
Imports Prognoz.Platform.Interop.ExtCtrls;
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
DV: IDimensionViewerBase;
Begin
DV := MetaAttributesBreadcrumbNet1.CtrlBox.DimensionViewer;
//Level, which hierarchy will be expanded
DV.AutoExpandDepth := 1;
//Element that will be focused
DV.FocusedElement := 10;
End Sub;
See also: