Export (0) Print
Expand All

TableLayoutPanel::RowStyles Property

Gets a collection of row styles for the TableLayoutPanel.

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

[BrowsableAttribute(false)]
public:
property TableLayoutRowStyleCollection^ RowStyles {
	TableLayoutRowStyleCollection^ get ();
}

Use the RowStyles property to access the style properties of specific rows. You can use members of the RowStyle class to set the characteristics of individual rows in the table.

When the TableLayoutPanel control arranges its rows, it assigns priorities to each RowStyle in the following order:

  1. Rows with RowStyle set to Absolute are considered first, and their fixed heights are allocated.

  2. Rows with RowStyle set to AutoSize are sized to their contents.

  3. Remaining space is divided among rows with RowStyle set to Percent.

The following code example sets the RowStyle properties of each row when a Button is clicked.

No code example is currently available or this language may not be supported.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0

Community Additions

ADD
Show:
© 2015 Microsoft