下面的示例演示了在运行时刻如何隐藏 图表向导 的页面上的某个属性标签页。 这种技术用于防止最终用户修改特定的图表设置。
C# | 复制代码 |
---|
using DevExpress.XtraCharts.Wizard;
private void button1_Click(object sender, EventArgs e) {
ChartWizard wizard = new ChartWizard(this.chartControl1);
WizardDataPage page = wizard.DataPage;
page.HiddenPageTabs.Add(DataPageTab.AutoCreatedSeries);
page.HiddenPageTabs.Add(DataPageTab.SeriesBinding);
wizard.ShowDialog();
}
|
Visual Basic | 复制代码 |
---|
Imports DevExpress.XtraCharts.Wizard;
Private Sub button1_Click(ByVal sender As Object, ByVal e As EventArgs) _
Handles button1.Click
Dim wizard As New ChartWizard(Me.chartControl1)
Dim page As WizardDataPage = wizard.DataPage
page.HiddenPageTabs.Add(DataPageTab.AutoCreatedSeries)
page.HiddenPageTabs.Add(DataPageTab.SeriesBinding)
wizard.ShowDialog()
End Sub
|
参阅