下面的示例演示了如何改变 图表向导 中的页面顺序。 它把 Appearance(外观) 页面移到 Construction 组中的最后一位,对于某些最终用户可能更实用。
C# | 复制代码 |
---|
using System.Collections.Generic;
using DevExpress.XtraCharts.Wizard;
ChartWizard wizard = new ChartWizard(this.chartControl1);
List<WizardPage> pages = new List<WizardPage>(wizard.Groups[0].Pages);
WizardPage appearancePage = pages[1];
pages.Remove(appearancePage);
pages.Add(appearancePage);
wizard.Groups[0].Pages = pages.ToArray();
wizard.ShowDialog();
|
Visual Basic | 复制代码 |
---|
Imports System.Collections.Generic
Imports DevExpress.XtraCharts.Wizard
Dim wizard As ChartWizard = New ChartWizard(Me.chartControl1)
Dim pages As List = New List(wizard.Groups(0).Pages)
Dim appearancePage As WizardPage = pages(1)
pages.Remove(appearancePage)
pages.Add(appearancePage)
wizard.Groups(0).Pages = pages.ToArray
wizard.ShowDialog
|
参阅