DataGridViewComboBoxCell.ObjectCollection.CopyTo(Object[], Int32) 方法

定义

将整个集合复制到数组内指定位置的现有对象数组中。

public:
 void CopyTo(cli::array <System::Object ^> ^ destination, int arrayIndex);
public void CopyTo(object[] destination, int arrayIndex);
member this.CopyTo : obj[] * int -> unit
Public Sub CopyTo (destination As Object(), arrayIndex As Integer)

参数

destination
Object[]

要将内容复制到的目标数组。

arrayIndex
Int32

要在其中开始复制的元素 destination 的索引。

例外

destinationnull

arrayIndex 小于 0 或等于或大于长度 destination

-或-

中的 DataGridViewComboBoxCell.ObjectCollection 元素数大于从 arrayIndex 开始到末尾 destination的可用空间。

destination 是多维。

适用于

另请参阅