DataGridViewComboBoxCell.ObjectCollection 类       
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示 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.ObjectCollection 对象DataGridViewComboBoxCell.Items。
构造函数
| 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。  |