TableLayoutRowStyleCollection.Add Method (RowStyle)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

public int Add(
	RowStyle rowStyle


Type: System.Windows.Forms.RowStyle

The RowStyle to add to the TableLayoutRowStyleCollection.

Return Value

Type: System.Int32

The position into which the new element was inserted.

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
Return to top