Wizard.ActiveStepIndex プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > Wizard.ActiveStepIndex プロパティの意味・解説 

Wizard.ActiveStepIndex プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

現在の WizardStepBase オブジェクトインデックス取得または設定します

名前空間: System.Web.UI.WebControls
アセンブリ: System.Web (system.web.dll 内)
構文構文

<ThemeableAttribute(False)> _
Public Overridable Property
 ActiveStepIndex As Integer
Dim instance As Wizard
Dim value As Integer

value = instance.ActiveStepIndex

instance.ActiveStepIndex = value
[ThemeableAttribute(false)] 
public virtual int ActiveStepIndex { get;
 set; }
[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)
public function get ActiveStepIndex
 () : int

public function set ActiveStepIndex
 (value : int)

プロパティ
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>
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からWizard.ActiveStepIndex プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からWizard.ActiveStepIndex プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からWizard.ActiveStepIndex プロパティ を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

Wizard.ActiveStepIndex プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



Wizard.ActiveStepIndex プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS