System.Windows.Forms.TableLayoutStyleCollection.Add Method

Adds a new System.Windows.Forms.TableLayoutStyle to the end of the current collection.

Syntax

public int Add (TableLayoutStyle style)

Parameters

style
The System.Windows.Forms.TableLayoutStyle to add to the System.Windows.Forms.TableLayoutStyleCollection.

Returns

The position into which the new element was inserted.

Remarks

The TableLayoutStyleCollection.Add(TableLayoutStyle) method reapplies the table layout to all the controls in the current System.Windows.Forms.TableLayoutPanel container.

The number of styles stored in a collection is limited only by available memory.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0