TableLayoutStyleCollection::Add Method (TableLayoutStyle^)
.NET Framework (current version)
Adds a new TableLayoutStyle to the end of the current collection.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- style
-
Type:
System.Windows.Forms::TableLayoutStyle^
The TableLayoutStyle to add to the TableLayoutStyleCollection.
| Exception | Condition |
|---|---|
| ArgumentException | style is already assigned to another owner. You must first remove it from its current location or clone it. |
The Add method reapplies the table layout to all the controls in the current TableLayoutPanel container.
The number of styles stored in a collection is limited only by available memory.
.NET Framework
Available since 2.0
Available since 2.0
Show: