TableLayoutControlCollection 类

定义

表示表布局容器中的子控件集合。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
继承
属性

注解

TableLayoutControlCollection 类表示 TableLayoutPanel 控件中的所有子控件的集合。The TableLayoutControlCollection class represents the collection of all the child controls in a TableLayoutPanel control. 此集合由 TableLayoutPanel 类的 Controls 属性公开。This collection is exposed by the Controls property of the TableLayoutPanel class. 您可以通过 Controls公开的 TableLayoutControlCollection 管理和单独操作 "表布局" 面板的成员。You can manage and individually manipulate members of the table layout panel through the TableLayoutControlCollection exposed by Controls.

TableLayoutControlCollection 类是 Control.ControlCollection 基类的次要专用化。The TableLayoutControlCollection class is a minor specialization of the Control.ControlCollection base class.

构造函数

TableLayoutControlCollection(TableLayoutPanel)

初始化 TableLayoutControlCollection 类的新实例。Initializes a new instance of the TableLayoutControlCollection class.

属性

Container

获取包含集合中的控件的父级 TableLayoutPanelGets the parent TableLayoutPanel that contains the controls in the collection.

Count

获取集合中包含的元素数。Gets the number of elements contained in the collection.

(继承自 Control.ControlCollection)
IsReadOnly

获取一个值,它指示此集合对象是否是只读的。Gets a value that indicates whether this collection object is read-only.

(继承自 Control.ControlCollection)
Item[Int32]

指示位于集合中指定索引位置的 ControlIndicates the Control at the specified indexed location in the collection.

(继承自 Control.ControlCollection)
Item[String]

指示集合中具有指定键的一个 ControlIndicates a Control with the specified key in the collection.

(继承自 Control.ControlCollection)
Owner

获取拥有此 Control.ControlCollection 的控件。Gets the control that owns this Control.ControlCollection.

(继承自 Control.ControlCollection)

方法

Add(Control)

将指定的控件添加到控件集合中。Adds the specified control to the control collection.

(继承自 Control.ControlCollection)
Add(Control, Int32, Int32)

将指定的控件添加到集合中并将其放置在指定单元格。Adds the specified control to the collection and positions it at the specified cell.

AddRange(Control[])

将控件对象数组添加到集合中。Adds an array of control objects to the collection.

(继承自 Control.ControlCollection)
Clear()

从集合中移除所有控件。Removes all controls from the collection.

(继承自 Control.ControlCollection)
Contains(Control)

确定指定控件是否为集合的成员。Determines whether the specified control is a member of the collection.

(继承自 Control.ControlCollection)
ContainsKey(String)

确定 Control.ControlCollection 是否包含具有指定键的项。Determines whether the Control.ControlCollection contains an item with the specified key.

(继承自 Control.ControlCollection)
CopyTo(Array, Int32)

将集合的元素复制到数组,从特定数组索引处开始复制。Copies the elements of the collection to an array, starting at a particular array index.

(继承自 Control.ControlCollection)
Equals(Object)

指定当前集合对象和所指定的对象是否相等。Specifies whether the current collection object and the specified object are equal.

(继承自 Control.ControlCollection)
Find(String, Boolean)

根据控件的 Name 属性搜索控件并生成由所有匹配项组成的数组。Searches for controls by their Name property and builds an array of all the controls that match.

(继承自 Control.ControlCollection)
GetChildIndex(Control)

检索控件集合内的指定子控件的索引。Retrieves the index of the specified child control within the control collection.

(继承自 Control.ControlCollection)
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.

(继承自 Control.ControlCollection)
GetEnumerator()

检索对用于循环访问 Control.ControlCollection 的枚举数对象的引用。Retrieves a reference to an enumerator object that is used to iterate over a Control.ControlCollection.

(继承自 Control.ControlCollection)
GetHashCode()

返回此实例的哈希代码。Returns the hash code for this instance.

(继承自 Control.ControlCollection)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
IndexOf(Control)

检索控件集合中指定控件的索引。Retrieves the index of the specified control in the control collection.

(继承自 Control.ControlCollection)
IndexOfKey(String)

检索指定项在集合中的第一个匹配项的索引。Retrieves the index of the first occurrence of the specified item within the collection.

(继承自 Control.ControlCollection)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
Remove(Control)

从控件集合中移除指定的控件。Removes the specified control from the control collection.

(继承自 Control.ControlCollection)
RemoveAt(Int32)

在指定的索引位置从控件集合移除控件。Removes a control from the control collection at the specified indexed location.

(继承自 Control.ControlCollection)
RemoveByKey(String)

移除具有指定键的子控件。Removes the child control with the specified key.

(继承自 Control.ControlCollection)
SetChildIndex(Control, Int32)

将集合中的指定子控件的索引设置为指定的索引值。Sets the index of the specified child control in the collection to the specified index value.

(继承自 Control.ControlCollection)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

显式接口实现

ICloneable.Clone()

有关此成员的说明,请参阅 Clone()For a description of this member, see Clone().

(继承自 Control.ControlCollection)
ICollection.IsSynchronized

有关此成员的说明,请参见 IsSynchronized 属性。For a description of this member, see the IsSynchronized property.

(继承自 ArrangedElementCollection)
ICollection.SyncRoot

有关此成员的说明,请参见 SyncRoot 属性。For a description of this member, see the SyncRoot property.

(继承自 ArrangedElementCollection)
IList.Add(Object)

有关此成员的说明,请参阅 Add(Object)For a description of this member, see Add(Object).

(继承自 Control.ControlCollection)
IList.Clear()

有关此成员的说明,请参见 Clear() 方法。For a description of this member, see the Clear() method.

(继承自 ArrangedElementCollection)
IList.Contains(Object)

有关此成员的说明,请参阅 Contains(Object)For a description of this member, see Contains(Object).

(继承自 Control.ControlCollection)
IList.IndexOf(Object)

有关此成员的说明,请参阅 IndexOf(Object)For a description of this member, see IndexOf(Object).

(继承自 Control.ControlCollection)
IList.Insert(Int32, Object)

有关此成员的说明,请参阅 Insert(Int32, Object)For a description of this member, see Insert(Int32, Object).

(继承自 Control.ControlCollection)
IList.IsFixedSize

有关此成员的说明,请参见 IsFixedSize 属性。For a description of this member, see the IsFixedSize property.

(继承自 ArrangedElementCollection)
IList.Item[Int32]

有关此成员的说明,请参见 Item[Int32] 属性。For a description of this member, see the Item[Int32] property.

(继承自 ArrangedElementCollection)
IList.Remove(Object)

有关此成员的说明,请参阅 Remove(Object)For a description of this member, see Remove(Object).

(继承自 Control.ControlCollection)
IList.RemoveAt(Int32)

有关此成员的说明,请参见 RemoveAt(Int32) 方法。For a description of this member, see the RemoveAt(Int32) method.

(继承自 ArrangedElementCollection)

扩展方法

Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

启用查询的并行化。Enables parallelization of a query.

AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于

另请参阅