DataGridViewRowCollection.System.Collections.ICollection.CopyTo メソッドとは? わかりやすく解説

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

DataGridViewRowCollection.System.Collections.ICollection.CopyTo メソッド

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

コレクション要素Arrayコピーします指定したインデックスからコピー開始されます。

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Private Sub System.Collections.ICollection.CopyTo
 ( _
    array As Array, _
    index As Integer _
) Implements ICollection.CopyTo
Dim instance As DataGridViewRowCollection
Dim array As Array
Dim index As Integer

CType(instance, ICollection).CopyTo(array, index)
void ICollection.CopyTo (
    Array array,
    int index
)
private:
virtual void System.Collections.ICollection.CopyTo (
    Array^ array, 
    int index
) sealed = ICollection::CopyTo

パラメータ

array

DataGridViewRowCollection から要素コピーされる 1 次元ArrayArray には、0 から始まるインデックス番号が必要です。

index

コピー開始位置となる、array の 0 から始まるインデックス

例外例外
例外種類条件

ArgumentNullException

arraynull 参照 (Visual Basic では Nothing) です。

ArgumentOutOfRangeException

index が 0 未満です。

ArgumentException

array多次元です。

または

indexarray長さ上です。

または

DataGridViewRowCollection要素数が、index から array末尾までに格納できる数を超えてます。

InvalidCastException

コピー元の DataGridViewRowCollection の型が、array 型に自動的にキャストできません。

解説解説

このメンバは、明示的なインターフェイス メンバ実装です。DataGridViewRowCollection インスタンスが ICollection インターフェイスキャストされた場合にのみ使用できます

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataGridViewRowCollection クラス
DataGridViewRowCollection メンバ
System.Windows.Forms 名前空間
DataGridView クラス
DataGridViewRow クラス
ICollection



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

辞書ショートカット

すべての辞書の索引

DataGridViewRowCollection.System.Collections.ICollection.CopyTo メソッドのお隣キーワード
検索ランキング

   

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



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

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

©2025 GRAS Group, Inc.RSS