TableLayoutRowStyleCollection Class
A collection that stores RowStyle objects.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
The TableLayoutRowStyleCollection class represents the collection of all the styles used to describe the rows in an associated TableLayoutPanel.
The following example shows how to set RowStyle for a TableLayoutRowStyleCollection. This code example is part of a larger example provided for the TableLayoutPanel control.
Private Sub toggleRowStylesBtn_Click( _ ByVal sender As System.Object, _ ByVal e As System.EventArgs) _ Handles toggleRowStylesBtn.Click Dim styles As TableLayoutRowStyleCollection = _ Me.TableLayoutPanel1.RowStyles For Each style As RowStyle In styles If style.SizeType = SizeType.Absolute Then style.SizeType = SizeType.AutoSize ElseIf style.SizeType = SizeType.AutoSize Then style.SizeType = SizeType.Percent ' Set the row height to be a percentage ' of the TableLayoutPanel control's height. style.Height = 33 Else ' Set the row height to 50 pixels. style.SizeType = SizeType.Absolute style.Height = 50 End If Next End Sub
System.Windows.Forms.TableLayoutStyleCollection
System.Windows.Forms.TableLayoutRowStyleCollection
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.