DataGridViewComboBoxCell.ObjectCollection 類別

定義

表示 DataGridViewComboBoxCell 中的選項集合。

public: ref class DataGridViewComboBoxCell::ObjectCollection : System::Collections::IList
[System.ComponentModel.ListBindable(false)]
public class DataGridViewComboBoxCell.ObjectCollection : System.Collections.IList
[<System.ComponentModel.ListBindable(false)>]
type DataGridViewComboBoxCell.ObjectCollection = class
    interface IList
    interface ICollection
    interface IEnumerable
Public Class DataGridViewComboBoxCell.ObjectCollection
Implements IList
繼承
DataGridViewComboBoxCell.ObjectCollection
屬性
實作

備註

您可以從 屬性或 DataGridViewComboBoxColumn.Items 屬性擷 DataGridViewComboBoxCell.ItemsDataGridViewComboBoxCell.ObjectCollection 物件。

建構函式

DataGridViewComboBoxCell.ObjectCollection(DataGridViewComboBoxCell)

初始化 DataGridViewComboBoxCell.ObjectCollection 類別的新執行個體。

屬性

Count

取得集合中的項目數目。

IsReadOnly

取得值,表示集合是否為唯讀。

Item[Int32]

取得或設定位於目前索引位置的項目。 在 C# 中,這個屬性是 DataGridViewComboBoxCell.ObjectCollection 類別的索引子。

方法

Add(Object)

將項目加入至 DataGridViewComboBoxCell 的項目清單。

AddRange(DataGridViewComboBoxCell+ObjectCollection)

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

AddRange(Object[])

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

Clear()

清除集合中的所有項目。

Contains(Object)

判斷指定的項目是否包含在集合中。

CopyTo(Object[], Int32)

將整個集合複製到陣列中,指定位置的現有物件陣列中。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetEnumerator()

傳回可逐一查看 DataGridViewComboBoxCell.ObjectCollection 的列舉值。

GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
IndexOf(Object)

傳回集合中指定之項目的索引。

Insert(Int32, Object)

將項目插入至索引中的指定索引處。

MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
Remove(Object)

從集合中移除指定的物件。

RemoveAt(Int32)

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

ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

明確介面實作

ICollection.CopyTo(Array, Int32)

將集合的元素複製至以指定的索引為起始點的指定陣列。

ICollection.IsSynchronized

取得值,表示是否同步化存取集合 (執行緒安全)。

ICollection.SyncRoot

取得物件,這個物件可以用來對集合進行同步存取。

IList.Add(Object)

將物件加入至集合。

IList.IsFixedSize

取得值,這個值表示集合的大小是否是固定的。

擴充方法

Cast<TResult>(IEnumerable)

IEnumerable 的項目轉換成指定的型別。

OfType<TResult>(IEnumerable)

根據指定的型別來篩選 IEnumerable 的項目。

AsParallel(IEnumerable)

啟用查詢的平行化作業。

AsQueryable(IEnumerable)

IEnumerable 轉換成 IQueryable

適用於

另請參閱