DataGridViewCellCollection.CopyTo(DataGridViewCell[], Int32) DataGridViewCellCollection.CopyTo(DataGridViewCell[], Int32) DataGridViewCellCollection.CopyTo(DataGridViewCell[], Int32) DataGridViewCellCollection.CopyTo(DataGridViewCell[], Int32) Method

定義

セルのコレクション全体を配列内の指定した位置にコピーします。Copies the entire collection of cells into an array at a specified location within the array.

public:
 void CopyTo(cli::array <System::Windows::Forms::DataGridViewCell ^> ^ array, int index);
public void CopyTo (System.Windows.Forms.DataGridViewCell[] array, int index);
override this.CopyTo : System.Windows.Forms.DataGridViewCell[] * int -> unit
Public Sub CopyTo (array As DataGridViewCell(), index As Integer)

パラメーター

array
DataGridViewCell[]

内容のコピー先となる配列。The destination array to which the contents will be copied.

index
Int32 Int32 Int32 Int32

array 内で要素のコピーを開始する位置のインデックス。The index of the element in array at which to start copying.

適用対象

こちらもご覧ください