語言

DataGridViewCellCollection.CopyTo(DataGridViewCell[], Int32) 方法

定義

將整個儲存格集合複製到陣列中指定位置的陣列中。

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[]

內容將被複製到的目標陣列。

index
Int32

從該元素 array 開始複製的索引。

適用於

另請參閱