DesignerActionListCollection.Insert メソッドとは何? わかりやすく解説 Weblio辞書 (original) (raw)

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

コレクション内の指定した位置に、指定した DesignerActionList挿入します

名前空間: System.ComponentModel.Design
アセンブリ: System.Design (system.design.dll 内)
構文構文

Visual Basic (宣言)

Public Sub Insert ( _ index As Integer, _ value As DesignerActionList _ )

Visual Basic (使用法)

Dim instance As DesignerActionListCollection Dim index As Integer Dim value As DesignerActionList

instance.Insert(index, value)

C#

public void Insert ( int index, DesignerActionList value )

C++

public: void Insert ( int index, DesignerActionList^ value )

J#

public void Insert ( int index, DesignerActionList value )

JScript

public function Insert ( index : int, value : DesignerActionList )

パラメータ

index

value挿入する位置の、0 から始まるインデックス

value

コレクション挿入する DesignerActionList。

例外例外

例外種類 条件
ArgumentOutOfRangeException index が 0 未満か、現在のコレクション要素数を超える値です。

解説解説

index パラメータCount プロパティの値と等し場合新し要素コレクション末尾追加されます。

DesignerActionListCollection クラス内部的に System.Collections.ArrayList を使用してDesignerActionList オブジェクトコレクション格納しますリスト連続する要素保持するので、新し要素挿入するために、挿入位置より後にある要素位置繰り下げられます。この再配置により、挿入位置より後ろ要素インデックス変更されます。

.NET Framework のセキュリティ.NET Frameworkセキュリティ

プラットフォームプラットフォーム

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

開発プラットフォーム中には.NET Framework によってサポートされていないバージョンありますサポートされているバージョンについては、「システム要件」を参照してください

バージョン情報バージョン情報

.NET Framework
サポート対象 : 2.0

参照参照

関連項目
DesignerActionListCollection クラス
DesignerActionListCollection メンバ
System.ComponentModel.Design 名前空間
IList.Insert
Count
IndexOf
Add
Remove
OnInsert
その他の技術情報
Windows フォームデザイナ コマンドと DesignerAction オブジェクト モデル