System.Windows.Forms.TableLayoutColumnStyleCollection.Add Method

Adds an item to the System.Windows.Forms.TableLayoutColumnStyleCollection.

Syntax

public int Add (ColumnStyle columnStyle)

Parameters

columnStyle
The System.Windows.Forms.ColumnStyle to add to the System.Windows.Forms.TableLayoutColumnStyleCollection.

Returns

The position into which the new element was inserted.

Remarks

The TableLayoutColumnStyleCollection.Add(ColumnStyle) 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