コレクション内の指定したインデックス位置に、指定した CodeStatement を挿入します。
名前空間: System.CodeDom
アセンブリ: System (system.dll 内)
構文
'宣言
Public Sub Insert ( _
index As Integer, _
value As CodeStatement _
)
'使用
Dim instance As CodeStatementCollection
Dim index As Integer
Dim value As CodeStatement
instance.Insert(index, value)
public void Insert (
int index,
CodeStatement value
)
public:
void Insert (
int index,
CodeStatement^ value
)
public void Insert (
int index,
CodeStatement value
)
public function Insert (
index : int,
value : CodeStatement
)
パラメータ
- index
指定したオブジェクトの挿入位置を示す、0 から始まるインデックス。
- value
挿入する CodeStatement。
使用例
' Inserts a CodeStatement at index 0 of the collection.
collection.Insert(0, New CodeCommentStatement("Test comment statement"))
// Inserts a CodeStatement at index 0 of the collection.
collection.Insert( 0, new CodeCommentStatement("Test comment statement") );
// Inserts a CodeStatement at index 0 of the collection.
collection->Insert( 0, gcnew CodeCommentStatement( "Test comment statement" ) );
// Inserts a CodeStatement at index 0 of the collection.
collection.Insert( 0, new CodeCommentStatement("Test comment statement") );
プラットフォーム
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、1.1、1.0
参照
関連項目
CodeStatementCollection クラス
CodeStatementCollection メンバ
System.CodeDom 名前空間
Add