System.Windows.Forms.TableLayoutRowStyleCollection.Add Method

Adds a new System.Windows.Forms.RowStyle to the System.Windows.Forms.TableLayoutRowStyleCollection.

Syntax

public int Add (RowStyle rowStyle)

Parameters

rowStyle
The System.Windows.Forms.RowStyle to add to the System.Windows.Forms.TableLayoutRowStyleCollection.

Returns

The position into which the new element was inserted.

Remarks

The TableLayoutRowStyleCollection.Add(RowStyle) 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