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

Dim instance As Wizard Dim value As Integer value = instance.ActiveStepIndex instance.ActiveStepIndex = value
[ThemeableAttribute(false)] public: virtual property int ActiveStepIndex { int get (); void set (int value); }
/** @property */ public int get_ActiveStepIndex () /** @property */ public void set_ActiveStepIndex (int value)
Wizard コントロールに現在表示されている WizardStepBase のインデックス。

ActiveStepIndex プロパティには、Wizard コントロールに現在表示されている WizardStepBase オブジェクトのゼロから始まるインデックスが用意されています。ActiveStepIndex プロパティをプログラムによって設定して、実行時にユーザーに表示されるステップを制御できます。
ActiveStepIndex の値を -1 に設定すると、ステップのないウィザードが既定でサポートされ、次の動作が発生します。
このプロパティは、テーマまたはスタイル シート テーマによって設定することはできません。詳細については、ThemeableAttribute、ASP.NET のテーマとスキンの概要 の各トピックを参照してください。

ActiveStepIndex プロパティを使用して、Wizard コントロールの ActiveStep プロパティを設定する方法を次のコード例に示します。CheckBox1.Checked の値が true の場合、ActiveStep プロパティは Wizard1.Step3 に設定されます。それ以外の場合、ActiveStep プロパティは Wizard1.Step2 に設定されます。
<%@ 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"> Sub OnActiveStepChanged(ByVal sender As Object, ByVal e As EventArgs) ' If the ActiveStep is changing to Step2, check to see whether the ' CheckBox1 CheckBox is selected. If it is, skip to the Step3 step. If (Wizard1.ActiveStepIndex = Wizard1.WizardSteps.IndexOf(Me.WizardStep2)) Then If (Me.CheckBox1.Checked) Then Wizard1.ActiveStepIndex = Wizard1.WizardSteps.IndexOf(Me.WizardStep3) End If End If End Sub </script> <html > <body> <form id="form1" runat="server"> <asp:Wizard id="Wizard1" runat="server" OnActiveStepChanged="OnActiveStepChanged"> <WizardSteps> <asp:WizardStep id="WizardStep1" title="Step 1" runat="server"> <asp:CheckBox id="CheckBox1" runat="Server" text="Select this check box to skip Step 2." /> You are currently on Step 1. </asp:WizardStep> <asp:WizardStep id="WizardStep2" title="Step 2" runat="server"> You are currently on Step 2. </asp:WizardStep> <asp:WizardStep id="WizardStep3" runat="server" title="Step 3"> You are currently on Step 3. </asp:WizardStep> </WizardSteps> <HeaderTemplate> <b>ActiveStepIndex Example</b> </HeaderTemplate> </asp:Wizard> </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"> void OnActiveStepChanged(object sender, EventArgs e) { // If the ActiveStep is changing to Step2, check to see whether the // CheckBox1 CheckBox is selected. If it is, skip to the Step2 step. if (Wizard1.ActiveStepIndex == Wizard1.WizardSteps.IndexOf(this.WizardStep2)) { if (this.CheckBox1.Checked) { Wizard1.ActiveStepIndex = Wizard1.WizardSteps.IndexOf(this.WizardStep3); } } } </script> <html > <body> <form id="form1" runat="server"> <asp:Wizard id="Wizard1" runat="server" OnActiveStepChanged="OnActiveStepChanged"> <WizardSteps> <asp:WizardStep id="WizardStep1" title="Step 1" runat="server"> <asp:CheckBox id="CheckBox1" runat="Server" text="Select this check box to skip Step 2." /> You are currently on Step 1. </asp:WizardStep> <asp:WizardStep id="WizardStep2" title="Step 2" runat="server"> You are currently on Step 2. </asp:WizardStep> <asp:WizardStep id="WizardStep3" runat="server" title="Step 3"> You are currently on Step 3. </asp:WizardStep> </WizardSteps> <HeaderTemplate> <b>ActiveStepIndex Example</b> </HeaderTemplate> </asp:Wizard> </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.ActiveStepIndex プロパティを検索する場合は、下記のリンクをクリックしてください。

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