System::Windows::Forms::Control::ControlCollection 类

ControlCollection class

控件的集合。未实现。

class ControlCollection : public System::Collections::Generic::IList<System::SharedPtr<Control>>

方法

方法描述
Add(const System::SharedPtr<Control>&) override向集合中添加控件。
virtual AddRange(System::ArrayPtr<System::SharedPtr<Control>>)向集合中添加多个控件。
Clear() override删除集合中的所有控件。
Contains(const System::SharedPtr<Control>&) const override检查特定控件是否存在于集合中。
virtual ContainsKey(System::String) const检查集合中是否存在具有特定名称的控件。
ControlCollection(const System::SharedPtr<Control>&)构造函数。
CopyTo(System::ArrayPtr<System::SharedPtr<Control>>, int) override将集合内容复制到现有数组元素中。
Find(const System::String&, bool) const在集合中查找指定名称的控件。可选地递归检查包含的控件的集合。
get_Count() const override获取集合中控件的数量。
get_Owner() const获取集合的拥有者控件。
GetChildIndex(const System::SharedPtr<Control>&) const查找特定控件。
virtual GetChildIndex(const System::SharedPtr<Control>&, bool) const查找特定控件。
GetEnumerator() override获取用于遍历集合的枚举器。
idx_get(int) const override按索引访问器。
virtual idx_get(System::String) const按名称访问器。
idx_set(int, System::SharedPtr<Control>) override按索引访问器。
virtual idx_set(System::String, System::SharedPtr<Control>)按名称访问器。
IndexOf(const System::SharedPtr<Control>&) const override在集合中查找控件。
virtual IndexOfKey(System::String) const在集合中查找具名控件。
Insert(int, const System::SharedPtr<Control>&) override将控件插入集合。
Remove(const System::SharedPtr<Control>&) override从集合中移除控件。
RemoveAt(int) override从集合中移除控件。
virtual RemoveByKey(System::String)从集合中移除控件。
virtual SetChildIndex(const System::SharedPtr<Control>&, int)将控件移动到新位置。

另见