DataGridViewComboBoxCell.ObjectCollection.Remove(Object) DataGridViewComboBoxCell.ObjectCollection.Remove(Object) DataGridViewComboBoxCell.ObjectCollection.Remove(Object) DataGridViewComboBoxCell.ObjectCollection.Remove(Object) Method

定義

從集合中移除指定的物件。Removes the specified object from the collection.

public:
 virtual void Remove(System::Object ^ value);
public void Remove (object value);
abstract member Remove : obj -> unit
override this.Remove : obj -> unit
Public Sub Remove (value As Object)

參數

value
Object Object Object Object

物件,表示要從集合中移除的項目。An object representing the item to remove from the collection.

實作

例外狀況

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

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

備註

如果value參數不在集合中,這個方法不會執行任何動作。If the value parameter is not in the collection, this method does nothing.

適用於

另請參閱