TableLayoutControlCollection TableLayoutControlCollection TableLayoutControlCollection TableLayoutControlCollection Class

Definition

Represents a collection of child controls in a table layout container.

public ref class TableLayoutControlCollection : System::Windows::Forms::Control::ControlCollection
[System.ComponentModel.ListBindable(false)]
public class TableLayoutControlCollection : System.Windows.Forms.Control.ControlCollection
type TableLayoutControlCollection = class
    inherit Control.ControlCollection
Public Class TableLayoutControlCollection
Inherits Control.ControlCollection
Inheritance
TableLayoutControlCollectionTableLayoutControlCollectionTableLayoutControlCollectionTableLayoutControlCollection
Attributes

Remarks

The TableLayoutControlCollection class represents the collection of all the child controls in a TableLayoutPanel control. This collection is exposed by the Controls property of the TableLayoutPanel class. You can manage and individually manipulate members of the table layout panel through the TableLayoutControlCollection exposed by Controls.

The TableLayoutControlCollection class is a minor specialization of the Control.ControlCollection base class.

Constructors

TableLayoutControlCollection(TableLayoutPanel) TableLayoutControlCollection(TableLayoutPanel) TableLayoutControlCollection(TableLayoutPanel) TableLayoutControlCollection(TableLayoutPanel)

Initializes a new instance of the TableLayoutControlCollection class.

Properties

Container Container Container Container

Gets the parent TableLayoutPanel that contains the controls in the collection.

Count Count Count Count

Gets the number of elements contained in the collection.

(Inherited from Control.ControlCollection)
IsReadOnly IsReadOnly IsReadOnly IsReadOnly

Gets a value that indicates whether this collection object is read-only.

(Inherited from Control.ControlCollection)
Item[Int32] Item[Int32] Item[Int32] Item[Int32]

Indicates the Control at the specified indexed location in the collection.

(Inherited from Control.ControlCollection)
Item[String] Item[String] Item[String] Item[String]

Indicates a Control with the specified key in the collection.

(Inherited from Control.ControlCollection)
Owner Owner Owner Owner

Gets the control that owns this Control.ControlCollection.

(Inherited from Control.ControlCollection)

Methods

Add(Control) Add(Control) Add(Control) Add(Control)

Adds the specified control to the control collection.

(Inherited from Control.ControlCollection)
Add(Control, Int32, Int32) Add(Control, Int32, Int32) Add(Control, Int32, Int32) Add(Control, Int32, Int32)

Adds the specified control to the collection and positions it at the specified cell.

AddRange(Control[]) AddRange(Control[]) AddRange(Control[]) AddRange(Control[])

Adds an array of control objects to the collection.

(Inherited from Control.ControlCollection)
Clear() Clear() Clear() Clear()

Removes all controls from the collection.

(Inherited from Control.ControlCollection)
Contains(Control) Contains(Control) Contains(Control) Contains(Control)

Determines whether the specified control is a member of the collection.

(Inherited from Control.ControlCollection)
ContainsKey(String) ContainsKey(String) ContainsKey(String) ContainsKey(String)

Determines whether the Control.ControlCollection contains an item with the specified key.

(Inherited from Control.ControlCollection)
CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32)

Copies the elements of the collection to an array, starting at a particular array index.

(Inherited from Control.ControlCollection)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Specifies whether the current collection object and the specified object are equal.

(Inherited from Control.ControlCollection)
Find(String, Boolean) Find(String, Boolean) Find(String, Boolean) Find(String, Boolean)

Searches for controls by their Name property and builds an array of all the controls that match.

(Inherited from Control.ControlCollection)
GetChildIndex(Control) GetChildIndex(Control) GetChildIndex(Control) GetChildIndex(Control)

Retrieves the index of the specified child control within the control collection.

(Inherited from Control.ControlCollection)
GetChildIndex(Control, Boolean) GetChildIndex(Control, Boolean) GetChildIndex(Control, Boolean) GetChildIndex(Control, Boolean)

Retrieves the index of the specified child control within the control collection, and optionally raises an exception if the specified control is not within the control collection.

(Inherited from Control.ControlCollection)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

Retrieves a reference to an enumerator object that is used to iterate over a Control.ControlCollection.

(Inherited from Control.ControlCollection)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Returns the hash code for this instance.

(Inherited from Control.ControlCollection)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
IndexOf(Control) IndexOf(Control) IndexOf(Control) IndexOf(Control)

Retrieves the index of the specified control in the control collection.

(Inherited from Control.ControlCollection)
IndexOfKey(String) IndexOfKey(String) IndexOfKey(String) IndexOfKey(String)

Retrieves the index of the first occurrence of the specified item within the collection.

(Inherited from Control.ControlCollection)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Remove(Control) Remove(Control) Remove(Control) Remove(Control)

Removes the specified control from the control collection.

(Inherited from Control.ControlCollection)
RemoveAt(Int32) RemoveAt(Int32) RemoveAt(Int32) RemoveAt(Int32)

Removes a control from the control collection at the specified indexed location.

(Inherited from Control.ControlCollection)
RemoveByKey(String) RemoveByKey(String) RemoveByKey(String) RemoveByKey(String)

Removes the child control with the specified key.

(Inherited from Control.ControlCollection)
SetChildIndex(Control, Int32) SetChildIndex(Control, Int32) SetChildIndex(Control, Int32) SetChildIndex(Control, Int32)

Sets the index of the specified child control in the collection to the specified index value.

(Inherited from Control.ControlCollection)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

ICloneable.Clone() ICloneable.Clone() ICloneable.Clone() ICloneable.Clone()

For a description of this member, see Clone().

(Inherited from Control.ControlCollection)
IList.Add(Object) IList.Add(Object) IList.Add(Object) IList.Add(Object)

For a description of this member, see Add(Object).

(Inherited from Control.ControlCollection)
IList.Contains(Object) IList.Contains(Object) IList.Contains(Object) IList.Contains(Object)

For a description of this member, see Contains(Object).

(Inherited from Control.ControlCollection)
IList.IndexOf(Object) IList.IndexOf(Object) IList.IndexOf(Object) IList.IndexOf(Object)

For a description of this member, see IndexOf(Object).

(Inherited from Control.ControlCollection)
IList.Insert(Int32, Object) IList.Insert(Int32, Object) IList.Insert(Int32, Object) IList.Insert(Int32, Object)

For a description of this member, see Insert(Int32, Object).

(Inherited from Control.ControlCollection)
IList.Remove(Object) IList.Remove(Object) IList.Remove(Object) IList.Remove(Object)

For a description of this member, see Remove(Object).

(Inherited from Control.ControlCollection)

Extension Methods

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to

See also