IDimSelection.SelectHierarchy

Fore Syntax

SelectHierarchy: IDimHierarchyInstance;

Fore.NET Syntax

SelectHierarchy: Prognoz.Platform.Interop.Dimensions.IDimHierarchyInstance;

Description

The SelectHierarchy property determines and adds alternative hierarchy in dictionary selection.

Comments

To work in selection with selected elements included in the specified alternative hierarchy, use IDimSelection.LimitToHierarchy.

Fore Example

Executing the example requires that the repository have:

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    dim: IDimInstance;
    hier: IDimHierarchyInstance;
Begin
    dim := UiDimension1.DimInstance;
    hier := dim.Hierarchies.Item(0);
    UiDimension1.Selection.SelectAll;
    UiDimension1.Selection.LimitToHierarchy(hier);
    UiDimension1.Selection.SelectHierarchy := hier;
End Sub Button1OnClick;

On clicking the button only the elements included in specified alternative hierarchy keep selected.

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.Dimensions;

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    dim: IDimInstance;
    hier: IDimHierarchyInstance;
Begin
    dim := UiDimensionNet1.DimInstance;
    hier := dim.Hierarchies.Item[0];
    UiDimensionNet1.Selection.SelectAll();
    UiDimensionNet1.Selection.LimitToHierarchy(hier);
    UiDimensionNet1.Selection.SelectHierarchy := hier;
End Sub;

See also:

IDimSelection