Wizard.WizardSteps プロパティ
アセンブリ: System.Web (system.web.dll 内)

<ThemeableAttribute(False)> _ Public Overridable ReadOnly Property WizardSteps As WizardStepCollection
[ThemeableAttribute(false)] public: virtual property WizardStepCollection^ WizardSteps { WizardStepCollection^ get (); }
Wizard に対して定義されたすべての WizardStepBase オブジェクトを表す WizardStepCollection。

WizardSteps プロパティは、Wizard コントロールを構成する WizardStepBase オブジェクトのコレクションを返します。WizardSteps コレクションを使用すると、Wizard コントロールに格納された WizardStepBase オブジェクトにプログラムからアクセスできます。Add、Remove、Clear、および Insert の各メソッドを使用して、コレクションの WizardStepBase オブジェクトをプログラムにより操作します。
このプロパティは、テーマまたはスタイル シート テーマによって設定することはできません。詳細については、ThemeableAttribute、ASP.NET のテーマとスキンの概要 の各トピックを参照してください。

プログラムによって Wizard コントロールを作成し、Add メソッドを使用して WizardStepBase オブジェクトを WizardSteps コレクションに追加する方法を次のコード例に示します。
<%@ Page Language="VB" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat="server"> ' Programmatically create a Wizard control and dynamically ' add WizardStep objects to it. Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Dim WizardControl As New Wizard() ' Create some steps for the wizard and add them to ' the Wizard control. For i As Integer = 0 To 5 Dim newStep As WizardStepBase = New WizardStep() newStep.ID = "Step" + (i + 1).ToString() WizardControl.WizardSteps.Add(newStep) Next ' Display the wizard on the page. PlaceHolder1.Controls.Add(WizardControl) End Sub </script> <html> <body> <form id="Form1" runat="server"> <h3>WizardSteps Example</h3> <asp:PlaceHolder id="PlaceHolder1" runat="server" /> </form> </body> </html>
<%@ page language="C#"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat="server"> // Programmatically create a Wizard control and dynamically // add WizardStep objects to it. void Page_Load(object sender, EventArgs e) { Wizard WizardControl = new Wizard(); // Create some steps for the wizard and add them // to the Wizard control. for (int i = 0; i <= 5; i++) { WizardStepBase newStep = new WizardStep(); newStep.ID = "Step" + (i + 1).ToString(); WizardControl.WizardSteps.Add(newStep); } // Display the wizard on the page. PlaceHolder1.Controls.Add(WizardControl); } </script> <html> <body> <form id="Form1" runat="server"> <h3>WizardSteps Example</h3> <asp:PlaceHolder id="PlaceHolder1" runat="server" /> </form> </body> </html>

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からWizard.WizardSteps プロパティを検索する場合は、下記のリンクをクリックしてください。

- Wizard.WizardSteps プロパティのページへのリンク