下面的示例演示了如何改变 图表向导 中的页面顺序。 它把 Appearance(外观) 页面移到 Construction 组中的最后一位,对于某些最终用户可能更实用。

C#CopyCode image复制代码
using System.Collections.Generic;
using DevExpress.XtraCharts.Wizard;
// ...
 
ChartWizard wizard = new ChartWizard(this.chartControl1);

// Create a typed list for a manipulation with Wizard pages.
List<WizardPage> pages = new List<WizardPage>(wizard.Groups[0].Pages);

// Remove the first page.
WizardPage appearancePage = pages[1];
pages.Remove(appearancePage);

// Append it to the list to become the last page.
pages.Add(appearancePage);

// Order the pages.
wizard.Groups[0].Pages = pages.ToArray();

wizard.ShowDialog();
Visual BasicCopyCode image复制代码
Imports System.Collections.Generic
Imports DevExpress.XtraCharts.Wizard
' ...

Dim wizard As ChartWizard = New ChartWizard(Me.chartControl1)

' Create a typed list for a manipulation with Wizard pages.
Dim pages As List = New List(wizard.Groups(0).Pages)

' Remove the first page.
Dim appearancePage As WizardPage = pages(1)
pages.Remove(appearancePage)

' Append it to the list to become the last page.
pages.Add(appearancePage)

' Order the pages.
wizard.Groups(0).Pages = pages.ToArray

wizard.ShowDialog

Expand image参阅