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

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

WizardStepCollection.Add メソッド

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

指定した WizardStepBase派生オブジェクトコレクション末尾追加します

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

Public Sub Add ( _
    wizardStep As WizardStepBase _
)
Dim instance As WizardStepCollection
Dim wizardStep As WizardStepBase

instance.Add(wizardStep)
public void Add (
    WizardStepBase wizardStep
)
public:
void Add (
    WizardStepBase^ wizardStep
)
public void Add (
    WizardStepBase wizardStep
)
public function Add (
    wizardStep : WizardStepBase
)

パラメータ

wizardStep

WizardStepCollection コレクション追加する WizardStepBase の派生オブジェクト

例外例外
例外種類条件

ArgumentNullException

渡されWizardStepBase派生オブジェクトnull 参照 (Visual Basic では Nothing) です。

解説解説
使用例使用例

プログラムによって Wizard コントロール作成しAdd メソッド使用して WizardStepBase派生 WizardStep オブジェクトを WizardSteps コレクション追加する方法次のコード例示します。この例では、Wizard コントロールWizardSteps プロパティは、WizardStepCollection クラスインスタンスです。

<%@ 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>
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
WizardStepCollection クラス
WizardStepCollection メンバ
System.Web.UI.WebControls 名前空間
WizardStepBase クラス
WizardStep クラス
AddAt
その他の技術情報
Wizard Web サーバー コントロール


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS