System::Windows::Forms::Control::ControlCollection class

ControlCollection class

Collection of controls. Not implemented.

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

Methods

MethodDescription
Add(const System::SharedPtr<Control>&) overrideAdds control into collection.
virtual AddRange(System::ArrayPtr<System::SharedPtr<Control>>)Adds several controls into collection.
Clear() overrideDeletes all controls from collection.
Contains(const System::SharedPtr<Control>&) const overrideChecks if specific control is present in collection.
virtual ContainsKey(System::String) constChecks if control with specific name is present in collection.
ControlCollection(const System::SharedPtr<Control>&)Constructor.
CopyTo(System::ArrayPtr<System::SharedPtr<Control>>, int) overrideCopies collection contents into existing array elements.
Find(const System::String&, bool) constLooks for the named control in collection. Optionally checks contained controls’ collections recursively.
get_Count() const overrideGets number of controls in collection.
get_Owner() constGets collection owner control.
GetChildIndex(const System::SharedPtr<Control>&) constLooks for specific control.
virtual GetChildIndex(const System::SharedPtr<Control>&, bool) constLooks for specific control.
GetEnumerator() overrideGets enumerator to iterate through collection.
idx_get(int) const overrideBy-index accessor.
virtual idx_get(System::String) constBy-name accessor.
idx_set(int, System::SharedPtr<Control>) overrideBy-index accessor.
virtual idx_set(System::String, System::SharedPtr<Control>)By-name accessor.
IndexOf(const System::SharedPtr<Control>&) const overrideLooks for control in collection.
virtual IndexOfKey(System::String) constLooks for named control in collection.
Insert(int, const System::SharedPtr<Control>&) overrideInserts control into collection.
Remove(const System::SharedPtr<Control>&) overrideRemoves control from collection.
RemoveAt(int) overrideRemoves control from collection.
virtual RemoveByKey(System::String)Removes control from collection.
virtual SetChildIndex(const System::SharedPtr<Control>&, int)Moves control to a new position.

See Also