DataGridView.DataGridViewControlCollection 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示包含在一个 DataGridView. 上的控件的集合。
public: ref class DataGridView::DataGridViewControlCollection : System::Windows::Forms::Control::ControlCollection
[System.Runtime.InteropServices.ComVisible(false)]
public class DataGridView.DataGridViewControlCollection : System.Windows.Forms.Control.ControlCollection
public class DataGridView.DataGridViewControlCollection : System.Windows.Forms.Control.ControlCollection
[<System.Runtime.InteropServices.ComVisible(false)>]
type DataGridView.DataGridViewControlCollection = class
inherit Control.ControlCollection
type DataGridView.DataGridViewControlCollection = class
inherit Control.ControlCollection
Public Class DataGridView.DataGridViewControlCollection
Inherits Control.ControlCollection
- 继承
-
DataGridView.DataGridViewControlCollection
- 属性
注解
控件 Controls 的属性 DataGridView 返回一个类型 Control.ControlCollection 实例,你可以将其强制转换为类型的 DataGridView.DataGridViewControlCollection实例。
包括 DataGridView.DataGridViewControlCollection 编辑控件和滚动条等 DataGridView控件。
构造函数
| 名称 | 说明 |
|---|---|
| DataGridView.DataGridViewControlCollection(DataGridView) |
初始化 DataGridView.DataGridViewControlCollection 类的新实例。 |
属性
| 名称 | 说明 |
|---|---|
| Item[Int32] |
指示 Control 集合中指定索引位置处。 (继承自 Control.ControlCollection) |
| Item[String] |
指示集合中具有指定键的键 Control 。 (继承自 Control.ControlCollection) |
| Owner |
获取拥有此 Control.ControlCollection权限的控件。 (继承自 Control.ControlCollection) |
方法
显式接口实现
| 名称 | 说明 |
|---|---|
| ICloneable.Clone() |
此 API 支持产品基础结构,不能在代码中直接使用。 有关此成员的说明,请参阅 Clone()。 (继承自 Control.ControlCollection) |
| ICollection.IsSynchronized |
有关此成员的说明,请参阅 IsSynchronized 该属性。 (继承自 ArrangedElementCollection) |
| ICollection.SyncRoot |
有关此成员的说明,请参阅 SyncRoot 该属性。 (继承自 ArrangedElementCollection) |
| IList.Add(Object) |
此 API 支持产品基础结构,不能在代码中直接使用。 有关此成员的说明,请参阅 Add(Object)。 (继承自 Control.ControlCollection) |
| IList.Clear() |
有关此成员的说明,请参阅 Clear() 方法。 (继承自 ArrangedElementCollection) |
| IList.IsFixedSize |
有关此成员的说明,请参阅 IsFixedSize 该属性。 (继承自 ArrangedElementCollection) |
| IList.Item[Int32] |
有关此成员的说明,请参阅 Item[Int32] 该属性。 (继承自 ArrangedElementCollection) |
| IList.Remove(Object) |
此 API 支持产品基础结构,不能在代码中直接使用。 有关此成员的说明,请参阅 Remove(Object)。 (继承自 Control.ControlCollection) |
| IList.RemoveAt(Int32) |
有关此成员的说明,请参阅 RemoveAt(Int32) 方法。 (继承自 ArrangedElementCollection) |
扩展方法
| 名称 | 说明 |
|---|---|
| AsParallel(IEnumerable) |
启用查询的并行化。 |
| AsQueryable(IEnumerable) |
将 IEnumerable 转换为 IQueryable。 |
| Cast<TResult>(IEnumerable) |
将 IEnumerable 的元素强制转换为指定类型。 |
| OfType<TResult>(IEnumerable) |
根据指定类型筛选 IEnumerable 的元素。 |