DataGridViewComboBoxCell.ObjectCollection.RemoveAt(Int32) 方法

定義

移除位於指定索引處的物件。

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

要移除之物件的以零起始的索引。

實作

例外狀況

index 小於 0 或大於集合中的項目數減一。

儲存格的 DataSource 屬性值不為 null

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

適用於

另請參閱