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) | 将控件移动到新位置。 |
另见
- Class IList
- Class Control
- Namespace System::Windows::Forms
- Library Aspose.Font for C++