TableLayoutPanelGrowStyle Enumeration
.NET Framework 3.0
Specifies how a TableLayoutPanel will gain additional rows or columns after its existing cells are full.
Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)
Assembly: System.Windows.Forms (in system.windows.forms.dll)
The following example shows how to use TableLayoutPanelGrowStyle to set the GrowStyle property on a TableLayoutPanel control. This code example is part of a larger example provided for the TableLayoutPanel control.
private void growStyleNoneBtn_CheckedChanged( System.Object sender, System.EventArgs e) { this.tlpGrowStyle = TableLayoutPanelGrowStyle.FixedSize; } private void growStyleAddRowBtn_CheckedChanged( System.Object sender, System.EventArgs e) { this.tlpGrowStyle = TableLayoutPanelGrowStyle.AddRows; } private void growStyleAddColumnBtn_CheckedChanged( System.Object sender, System.EventArgs e) { this.tlpGrowStyle = TableLayoutPanelGrowStyle.AddColumns; } private void testGrowStyleBtn_Click( System.Object sender, System.EventArgs e) { this.TableLayoutPanel1.GrowStyle = this.tlpGrowStyle; try { this.TableLayoutPanel1.Controls.Add(new Button()); } catch(ArgumentException ex) { Trace.WriteLine(ex.Message); } }
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: