DataGridViewComboBoxCell.ObjectCollection.AddRange DataGridViewComboBoxCell.ObjectCollection.AddRange DataGridViewComboBoxCell.ObjectCollection.AddRange DataGridViewComboBoxCell.ObjectCollection.AddRange Method

定義

將項目群組加入至 DataGridViewComboBoxCell 的項目清單中。Adds a group of items to the list of items for a DataGridViewComboBoxCell.

多載

AddRange(Object[]) AddRange(Object[]) AddRange(Object[]) AddRange(Object[])

將一個或多個項目加入至 DataGridViewComboBoxCell 的項目清單中。Adds one or more items to the list of items for a DataGridViewComboBoxCell.

AddRange(DataGridViewComboBoxCell+ObjectCollection) AddRange(DataGridViewComboBoxCell+ObjectCollection) AddRange(DataGridViewComboBoxCell+ObjectCollection) AddRange(DataGridViewComboBoxCell+ObjectCollection)

將現有 DataGridViewComboBoxCell.ObjectCollection 的項目加入至 DataGridViewComboBoxCell 中的項目清單中。Adds the items of an existing DataGridViewComboBoxCell.ObjectCollection to the list of items in a DataGridViewComboBoxCell.

AddRange(Object[]) AddRange(Object[]) AddRange(Object[]) AddRange(Object[])

將一個或多個項目加入至 DataGridViewComboBoxCell 的項目清單中。Adds one or more items to the list of items for a 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) 的項目。One or more objects that represent items for the drop-down list.

-或--or- Array 值的 ObjectAn Array of Object values.

例外狀況

items 陣列中的一個或多個項目為 nullOne or more of the items in the items array is null.

-或--or-

儲存格位於共用資料列中。The cell is in a shared row.

儲存格的 DataSource 屬性值不為 nullThe cell's DataSource property value is not null.

另請參閱

AddRange(DataGridViewComboBoxCell+ObjectCollection) AddRange(DataGridViewComboBoxCell+ObjectCollection) AddRange(DataGridViewComboBoxCell+ObjectCollection) AddRange(DataGridViewComboBoxCell+ObjectCollection)

將現有 DataGridViewComboBoxCell.ObjectCollection 的項目加入至 DataGridViewComboBoxCell 中的項目清單中。Adds the items of an existing DataGridViewComboBoxCell.ObjectCollection to the list of items in a 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)

參數

例外狀況

value 集合中的一個或多個項目為 nullOne or more of the items in the value collection is null.

-或--or-

儲存格位於共用資料列中。The cell is in a shared row.

儲存格的 DataSource 屬性值不為 nullThe cell's DataSource property value is not null.

另請參閱

適用於