DataGridViewComboBoxCell.ObjectCollection.AddRange 方法

定義

將項目群組加入至 DataGridViewComboBoxCell 的項目清單中。

多載

AddRange(Object[])

將一個或多個項目加入至 DataGridViewComboBoxCell 的項目清單中。

AddRange(DataGridViewComboBoxCell+ObjectCollection)

將現有 DataGridViewComboBoxCell.ObjectCollection 的項目加入至 DataGridViewComboBoxCell 中的項目清單中。

AddRange(Object[])

將一個或多個項目加入至 DataGridViewComboBoxCell 的項目清單中。

public:
 void AddRange(... cli::array <System::Object ^> ^ items);
public void AddRange (params object[] items);
member this.AddRange : obj[] -> unit
Public Sub AddRange (ParamArray items As Object())

參數

items
Object[]

一個或多個物件,表示下拉式清單 (Drop-Down List) 的項目。

-或-

Array 值的 Object

例外狀況

itemsnull

items 陣列中的一個或多個項目為 null

-或-

儲存格位於共用資料列中。

儲存格的 DataSource 屬性值不為 null

另請參閱

適用於

AddRange(DataGridViewComboBoxCell+ObjectCollection)

將現有 DataGridViewComboBoxCell.ObjectCollection 的項目加入至 DataGridViewComboBoxCell 中的項目清單中。

public:
 void AddRange(System::Windows::Forms::DataGridViewComboBoxCell::ObjectCollection ^ value);
public void AddRange (System.Windows.Forms.DataGridViewComboBoxCell.ObjectCollection value);
member this.AddRange : System.Windows.Forms.DataGridViewComboBoxCell.ObjectCollection -> unit
Public Sub AddRange (value As DataGridViewComboBoxCell.ObjectCollection)

參數

例外狀況

valuenull

value 集合中的一個或多個項目為 null

-或-

儲存格位於共用資料列中。

儲存格的 DataSource 屬性值不為 null

另請參閱

適用於