Control.ControlCollection 成员
表示 Control 对象的集合。
下表列出了由 Control.ControlCollection 类型公开的成员。
公共构造函数
名称 | 说明 | |
---|---|---|
Control.ControlCollection | 初始化 Control.ControlCollection 类的新实例。 |
页首
公共属性
名称 | 说明 | |
---|---|---|
Count | 获取集合中的元素数。(从 ArrangedElementCollection 继承。) | |
IsReadOnly | 获取一个值,该值指示集合是否为只读。(从 ArrangedElementCollection 继承。) | |
Item | 已重载。指示集合中的一个 Control。 | |
Owner | 获取拥有此 Control.ControlCollection 的控件。 |
页首
公共方法
(请参见 受保护的方法 )
名称 | 说明 | |
---|---|---|
Add | 将指定的控件添加到控件集合中。 | |
AddRange | 将控件对象数组添加到集合中。 | |
Clear | 从集合中移除所有控件。 | |
Contains | 确定指定控件是否为集合的成员。 | |
ContainsKey | 确定 Control.ControlCollection 是否包含具有指定键的项。 | |
CopyTo | 从目标数组的指定索引处开始将此集合的全部内容复制到兼容的一维 Array。 (从 ArrangedElementCollection 继承。) | |
Equals | 已重载。 确定两个 ArrangedElementCollection 实例是否相等。 (从 ArrangedElementCollection 继承。) | |
Find | 根据控件的 Name 属性搜索控件并生成由所有匹配项组成的数组。 | |
GetChildIndex | 已重载。 检索控件集合内的控件的索引。 | |
GetEnumerator | 已重写。 检索对用于循环访问 Control.ControlCollection 的枚举数对象的引用。 | |
GetHashCode | 返回此实例的哈希代码。 (从 ArrangedElementCollection 继承。) | |
GetType | 获取当前实例的 Type。 (从 Object 继承。) | |
IndexOf | 检索控件集合中指定控件的索引。 | |
IndexOfKey | 检索指定项在集合中的第一个匹配项的索引。 | |
ReferenceEquals | 确定指定的 Object 实例是否是相同的实例。 (从 Object 继承。) | |
Remove | 从控件集合中移除指定的控件。 | |
RemoveAt | 在指定的索引位置从控件集合移除控件。 | |
RemoveByKey | 移除具有指定键的子控件。 | |
SetChildIndex | 将集合中的指定子控件的索引设置为指定的索引值。 | |
ToString | 返回表示当前 Object 的 String。 (从 Object 继承。) |
页首
受保护的方法
名称 | 说明 | |
---|---|---|
Finalize | 允许 Object 在“垃圾回收”回收 Object 之前尝试释放资源并执行其他清理操作。 (从 Object 继承。) | |
MemberwiseClone | 创建当前 Object 的浅表副本。 (从 Object 继承。) |
页首
显式接口实现
页首
请参见
参考
Control.ControlCollection 类
System.Windows.Forms 命名空间
Control 类
IList