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 中的項目數大於從 arrayIndexdestination 結尾之間的可用空間。

destination 是多維的。

適用於

另請參閱