DataGridViewComboBoxCell.ObjectCollection.CopyTo(Object[], Int32) メソッド

定義

コレクション全体を、配列内の指定した位置にあるオブジェクトの既存の配列にコピーします。

public:
 void CopyTo(cli::array <System::Object ^> ^ destination, int arrayIndex);
public void CopyTo(object[] destination, int arrayIndex);
member this.CopyTo : obj[] * int -> unit
Public Sub CopyTo (destination As Object(), arrayIndex As Integer)

パラメーター

destination
Object[]

内容のコピー先となるコピー先の配列。

arrayIndex
Int32

コピーを開始する destination 内の要素のインデックス。

例外

destinationnullです。

arrayIndex が 0 より小さいか、 destinationの長さ以上です。

-又は-

DataGridViewComboBoxCell.ObjectCollection内の要素の数が、arrayIndexからdestinationの末尾までの使用可能な領域を超えています。

destination は多次元です。

適用対象

こちらもご覧ください