DataGridViewComboBoxCell.ObjectCollection.RemoveAt(Int32) DataGridViewComboBoxCell.ObjectCollection.RemoveAt(Int32) DataGridViewComboBoxCell.ObjectCollection.RemoveAt(Int32) DataGridViewComboBoxCell.ObjectCollection.RemoveAt(Int32) Method

定義

移除位於指定索引處的物件。Removes the object at the specified index.

public:
 virtual void RemoveAt(int index);
public void RemoveAt (int index);
abstract member RemoveAt : int -> unit
override this.RemoveAt : int -> unit
Public Sub RemoveAt (index As Integer)

參數

index
Int32 Int32 Int32 Int32

要移除之物件的以零起始的索引。The zero-based index of the object to be removed.

實作

例外狀況

index 小於 0 或大於集合中的項目數減一。index is less than 0 or greater than the number of items in the collection minus one.

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

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

適用於

另請參閱