DataGridViewCellCollection.CopyTo(DataGridViewCell[], Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
Parameters
- array
- DataGridViewCell[]
The destination array to which the contents will be copied.
- index
- Int32
The index of the element in array
at which to start copying.