# TableLayoutControlCollection

URL: https://docs.wisej.com/api/wisej.web/containers/tablelayoutpanel/wisej.web.tablelayoutcontrolcollection

Version: 4.1
Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (4.1.0.0)

- [ControlCollection](/api/wisej.web/general/control/wisej.web.control.controlcollection)
- [TableLayoutControlCollection](/api/wisej.web/containers/tablelayoutpanel/wisej.web.tablelayoutcontrolcollection)
Represents a collection of child controls in a table layout container.

- C# - VB.NET

```csharp
public class TableLayoutControlCollection : ControlCollection
```

```visual
Public Class TableLayoutControlCollection
    Inherits ControlCollection
```

## Constructors

### ![Instance member](/img/api/instance.png) TableLayoutControlCollection(container)

Initializes a new instance of the [TableLayoutControlCollection](/api/wisej.web/containers/tablelayoutpanel/wisej.web.tablelayoutcontrolcollection) class.

| Name | Type | Description | **container** | TableLayoutPanel | TheTableLayoutPanel control that contains the control collection. 

## Properties

### ![Instance member](/img/api/instance.png) Container

TableLayoutPanel : Returns the parentTableLayoutPanel that contains the controls in the collection.

## Methods

### ![Instance member](/img/api/instance.png) Add(control, column, row)

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

| Parameter | Type | Description | **control** | Control | The control to add. | **column** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The column in which *control* will be placed. | **row** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The row in which *control* will be placed. 

**Throws:**

- [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception) Either * column* or *row* is less than -1.
