IDimensionViewerBase.Expand

Fore Syntax

Expand(Node: Integer; [Recursively: Boolean = false ]);

Fore.NET Syntax

Expand(Node: uinteger; Recursively: boolean);

Parameters

Node. Node, for which the method expands children hierarchy.

Recursively. Determines whether children hierarchy is recursively expanded.

Description

The Expand method expands hierarchies of tree children for the specified node.

Comments

Available values of the Recursively parameter:

To collapse hierarchy of tree children of the specified node, use the IDimensionViewerBase.Collapse method.

To determine the level of dimension that is automatically expanded on opening a drop-down component area, use the IDimensionViewerBase.AutoExpandDepth property.

Fore 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;
    //Expand children hierarchy
    DV.Expand(0True);
End Sub Button1OnClick;

Clicking the button in the drop-down list of the MetaAtrributesBreadCrumb1 component the children hierarchy is collapsed at the element with the 0 index.

Fore.NET Example

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;
    //Expand children hierarchy
    DV.Expand(0True);
End Sub;

See also:

IDimensionViewerBase