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 的索引。

适用于

另请参阅