Wizard.GetStepType メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > Wizard.GetStepType メソッドの意味・解説 

Wizard.GetStepType メソッド

メモ : このメソッドは、.NET Framework version 2.0新しく追加されたものです。

指定した WizardStepBase オブジェクトWizardStepType 値を返します

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

Public Function GetStepType ( _
    wizardStep As WizardStepBase, _
    index As Integer _
) As WizardStepType
Dim instance As Wizard
Dim wizardStep As WizardStepBase
Dim index As Integer
Dim returnValue As WizardStepType

returnValue = instance.GetStepType(wizardStep, index)
public WizardStepType GetStepType (
    WizardStepBase wizardStep,
    int index
)
public:
WizardStepType GetStepType (
    WizardStepBase^ wizardStep, 
    int index
)
public WizardStepType GetStepType (
    WizardStepBase wizardStep, 
    int index
)
public function GetStepType (
    wizardStep : WizardStepBase, 
    index : int
) : WizardStepType

パラメータ

wizardStep

関連する WizardStepType を返す対象となる WizardStepBase。

index

関連する WizardStepType返す対象となる WizardStepBaseインデックス

戻り値
WizardStepType 値の 1 つ

解説解説

GetStepType メソッド使用して指定した WizardStepBase オブジェクトWizardStepType 値を確認します

使用例使用例

GetStepType メソッド使用してWizard コントロール現在のステップ関連付けられた WizardStepType 値を確認する方法次のコード例示します。ActiveStepChanged イベント発生するたびに、新しWizardStepType 値が取得されLabel1メッセージ書き込まれます。

<%@ 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)
    
    Dim tempLabel As Label = CType(Wizard1.FindControl("Label1"),
 Label)
    If Not tempLabel Is
 Nothing Then

      ' Get the step type of the ActiveStep and write it to Label1.
      Dim tempStepType As WizardStepType =
 Wizard1.GetStepType(Wizard1.ActiveStep, Wizard1.ActiveStepIndex)
      tempLabel.Text = "The current step type is "
 & tempStepType.ToString() & "."
 
    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:WizardStep>
            <asp:WizardStep id="WizardStep2" 
              title="Step 2" 
              runat="server">
            </asp:WizardStep>
            <asp:WizardStep id="WizardStep3" 
              runat="server" 
              title="Step 3">
            </asp:WizardStep>
          </WizardSteps>
          <HeaderTemplate>
            <b>GetStepType Example</b>
            &nbsp;<br />
            <asp:Label id="Label1" 
              runat="server" 
              width="208px" 
              height="19px">
            </asp:Label>
          </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)
  { 
    Label tempLabel = (Label)Wizard1.FindControl("Label1");
    if (tempLabel != null)
    {
      // Get the step type of the ActiveStep and write it to Label1.
      WizardStepType tempStepType = Wizard1.GetStepType(Wizard1.ActiveStep, Wizard1.ActiveStepIndex);
      tempLabel.Text = "The current step type is " + tempStepType.ToString()
 + ".";
    }   
  }
  
</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:WizardStep>
            <asp:WizardStep id="WizardStep2" 
              title="Step 2" 
              runat="server">
            </asp:WizardStep>
            <asp:WizardStep id="WizardStep3" 
              runat="server" 
              title="Step 3">
            </asp:WizardStep>
          </WizardSteps>
          <HeaderTemplate>
            <b>GetStepType Example</b>
            &nbsp;<br />
            <asp:Label id="Label1" 
              runat="server" 
              width="208px" 
              height="19px">
            </asp:Label>
          </HeaderTemplate>
        </asp:Wizard>
      </form>
  </body>
</html>
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


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

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

辞書ショートカット

すべての辞書の索引

Wizard.GetStepType メソッドのお隣キーワード
検索ランキング

   

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



Wizard.GetStepType メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS