Control.ControlCollection 成员

表示 Control 对象的集合。

下表列出了由 Control.ControlCollection 类型公开的成员。

公共构造函数

  名称 说明
Public method Supported by the .NET Compact Framework Control.ControlCollection 初始化 Control.ControlCollection 类的新实例。

页首

公共属性

  名称 说明
Public property Supported by the .NET Compact Framework Count  获取集合中的元素数。(从 ArrangedElementCollection 继承。)
Public property Supported by the .NET Compact Framework IsReadOnly  获取一个值,该值指示集合是否为只读。(从 ArrangedElementCollection 继承。)
Public property Supported by the .NET Compact Framework Item 已重载。指示集合中的一个 Control
Public property Owner 获取拥有此 Control.ControlCollection 的控件。

页首

公共方法

(请参见 受保护的方法 )

  名称 说明
Public method Supported by the .NET Compact Framework Add 将指定的控件添加到控件集合中。
Public method AddRange 将控件对象数组添加到集合中。
Public method Supported by the .NET Compact Framework Clear 从集合中移除所有控件。
Public method Supported by the .NET Compact Framework Contains 确定指定控件是否为集合的成员。
Public method ContainsKey 确定 Control.ControlCollection 是否包含具有指定键的项。
Public method Supported by the .NET Compact Framework CopyTo  从目标数组的指定索引处开始将此集合的全部内容复制到兼容的一维 Array。 (从 ArrangedElementCollection 继承。)
Public method Supported by the .NET Compact Framework Equals  已重载。 确定两个 ArrangedElementCollection 实例是否相等。 (从 ArrangedElementCollection 继承。)
Public method Find 根据控件的 Name 属性搜索控件并生成由所有匹配项组成的数组。
Public method Supported by the .NET Compact Framework GetChildIndex 已重载。 检索控件集合内的控件的索引。
Public method Supported by the .NET Compact Framework GetEnumerator 已重写。 检索对用于循环访问 Control.ControlCollection 的枚举数对象的引用。
Public method Supported by the .NET Compact Framework GetHashCode  返回此实例的哈希代码。 (从 ArrangedElementCollection 继承。)
Public method Supported by the .NET Compact Framework GetType  获取当前实例的 Type。 (从 Object 继承。)
Public method Supported by the .NET Compact Framework IndexOf 检索控件集合中指定控件的索引。
Public method IndexOfKey 检索指定项在集合中的第一个匹配项的索引。
Public method Static Supported by the .NET Compact Framework ReferenceEquals  确定指定的 Object 实例是否是相同的实例。 (从 Object 继承。)
Public method Supported by the .NET Compact Framework Remove 从控件集合中移除指定的控件。
Public method Supported by the .NET Compact Framework RemoveAt 在指定的索引位置从控件集合移除控件。
Public method RemoveByKey 移除具有指定键的子控件。
Public method Supported by the .NET Compact Framework SetChildIndex 将集合中的指定子控件的索引设置为指定的索引值。
Public method Supported by the .NET Compact Framework ToString  返回表示当前 ObjectString。 (从 Object 继承。)

页首

受保护的方法

  名称 说明
Protected method Supported by the .NET Compact Framework Finalize  允许 Object 在“垃圾回收”回收 Object 之前尝试释放资源并执行其他清理操作。 (从 Object 继承。)
Protected method Supported by the .NET Compact Framework MemberwiseClone  创建当前 Object 的浅表副本。 (从 Object 继承。)

页首

显式接口实现

  名称 说明
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.IList.Add 有关此成员的说明,请参见 IList.Add
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.IList.Contains  
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.IList.IndexOf  
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.IList.Insert  
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.IList.Remove 有关此成员的说明,请参见 IList.Remove
Explicit interface implementation Method System.ICloneable.Clone 创建作为当前实例副本的新对象。
Explicit interface implementation Property Supported by the .NET Compact Framework System.Collections.ICollection.IsSynchronized  
Explicit interface implementation Property Supported by the .NET Compact Framework System.Collections.ICollection.SyncRoot  
Explicit interface implementation Property Supported by the .NET Compact Framework System.Collections.IList.IsFixedSize  
Explicit interface implementation Property Supported by the .NET Compact Framework System.Collections.IList.Item  

页首

请参见

参考

Control.ControlCollection 类
System.Windows.Forms 命名空间
Control 类
IList