INavigationBarPadList.ItemById

Syntax

ItemById(Id: String): INavigationBarPad

Parameters

Id. Tab identifier.

Description

The ItemById property returns parameters of the tab with the specified identifier.

Comments

As the Id parameter, the identifier that is available only for system assemblies should be set. The system tab can be obtained in the IWidget.Pads collection or in the INavigationBar.Pads collection provided that the INavigationBarPad.IsSystem property returns True for it. The NavigationBar component will display system tabs if it is set in the NavBar property of any component implementing a set of system tabs.

To work with tabs created in application code, use the INavigationBarPadList.Item, INavigationBar.ActivePad properties.

Example

Executing the example requires a form with the button named Button1 on it, the ChartWidget component named ChartWidget1, the NavigationBar component and the UiErAnalyzer component that is a data source for ChartWidget1. NavigationBar is connected to ChartWidget1 and it is used as visual component to display tabs. UiErAnalyzer is connected to any express report where a chart is created.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Pad: INavigationBarPad;
Begin
    Pad := ChartWidget1.Pads.ItemById("ChartValueAxisY");
    Pad.Visible := False;
End Sub Button1OnClick;

On clicking the button in the collection of tabs that are used to set up the chart, the tab to set up value axis (Y) is opened.

See also:

INavigationBarPadList