DataGridViewCellCollection.CopyTo(DataGridViewCell[], Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将整个单元格集合复制到数组中的指定位置的数组中。
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 的索引。