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

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

WizardStepCollection.Insert メソッド

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

このコレクション内の指定したインデックス位置に、指定した WizardStepBase派生オブジェクト挿入します

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

Public Sub Insert ( _
    index As Integer, _
    wizardStep As WizardStepBase _
)
Dim instance As WizardStepCollection
Dim index As Integer
Dim wizardStep As WizardStepBase

instance.Insert(index, wizardStep)
public void Insert (
    int index,
    WizardStepBase wizardStep
)
public:
void Insert (
    int index, 
    WizardStepBase^ wizardStep
)
public void Insert (
    int index, 
    WizardStepBase wizardStep
)
public function Insert (
    index : int, 
    wizardStep : WizardStepBase
)

パラメータ

index

WizardStepBase の派生オブジェクト挿入するインデックス位置

wizardStep

WizardStepCollection コレクション挿入する WizardStepBase派生オブジェクト

解説解説
使用例使用例

プログラムによって Wizard コントロール作成しInsert メソッド使用して WizardStepBase派生オブジェクトを 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 Wizard = New
 Wizard()
      
    ' Create some steps for the wizard and insert them
    ' into the WizardStepCollection collection.
    For i As Integer = 0
 To 5
      Dim newStep As WizardStepBase = New
 WizardStep()
      newStep.ID = "Step" + (i + 1).ToString()
      WizardControl.WizardSteps.Insert(0, newStep)
    Next

    WizardControl.ActiveStepIndex = 0
    WizardControl.DisplaySideBar = True
    
    ' Display the wizard on the page.
    PlaceHolder1.Controls.Add(WizardControl)
  
  End Sub
  
</script>

<html>
  <body>
    <form id="Form1" runat="server">
      <h3>WizardStepCollection Insert 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 insert them
    // into the WizardStepCollection collection.
    for (int i = 0; i <= 5; i++)
    {
      WizardStepBase newStep = new WizardStep();
      newStep.ID = "Step" + (i + 1).ToString();
      WizardControl.WizardSteps.Insert(0, newStep);
    }

    WizardControl.ActiveStepIndex = 0;
    WizardControl.DisplaySideBar = true;
    
    // Display the wizard on the page.
    PlaceHolder1.Controls.Add(WizardControl);
  }
  
</script>

<html>
  <body>
    <form id="Form1" runat="server">
      <h3>WizardStepCollection Insert Example</h3>
      <asp:PlaceHolder id="PlaceHolder1" 
        runat="server" />
    </form>
  </body>
</html>
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
WizardStepCollection クラス
WizardStepCollection メンバ
System.Web.UI.WebControls 名前空間
WizardStepBase クラス
WizardStep クラス
Add
AddAt
その他の技術情報
Wizard Web サーバー コントロール



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS