Skip to main content
A newer version of this page is available. .

DataPageTabCollection.Add(DataPageTab) Method

Appends the page tab of the specified type to the current collection of hidden page tabs.

Namespace: DevExpress.XtraCharts.Wizard

Assembly: DevExpress.XtraCharts.v18.2.Wizard.dll

Declaration

public void Add(
    DataPageTab hiddenTab
)

Parameters

Name Type Description
hiddenTab DataPageTab

A DataPageTab enumeration value, which specifies the page tab to append to the collection.

Remarks

The page tab added to this collection will be hidden in the Chart Wizard.

Example

The following example demonstrates how to hide certain property tabs on a Chart Wizard‘s page at runtime. This technique is useful to prevent the end-users from modifying particular chart settings.

using DevExpress.XtraCharts.Wizard;
// ...

private void button1_Click(object sender, EventArgs e) {
    // Create a new Wizard.
    ChartWizard wizard = new ChartWizard(this.chartControl1);

    // Obtain a Data page.
    WizardDataPage page = wizard.DataPage;

    // Hide the tabs related to a data source on the Data page.
    page.HiddenPageTabs.Add(DataPageTab.AutoCreatedSeries);
    page.HiddenPageTabs.Add(DataPageTab.SeriesBinding);

    // Invoke the Wizard window.
    wizard.ShowDialog();
}

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Add(DataPageTab) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also