Skip to content

TableLayoutPanel

ProGraMajster edited this page Mar 28, 2026 · 1 revision

TableLayoutPanel

← Back to Control Inventory

Summary

Represents a TableLayoutPanel control.

Example

var table = new TableLayoutPanel();
table.Controls.Add(new Label { Text = "Name" }, 0, 0);
table.Controls.Add(new TextBox(), 1, 0);

Documented Properties

Name Summary
ColumnCount This sets the maximum number of columns allowed on this table instead of allocating actual spaces for these columns. So it is OK to set ColumnCount to Int32.MaxValue without causing out of memory exception
ColumnStyles Gets the collection of ColumnStyles for this TableLayoutPanel.
Controls Gets the collection of controls contained by the control.
GrowStyle Specifies if a TableLayoutPanel will gain additional rows or columns once its existing cells become full. If the value is 'FixedSize' then the TableLayoutPanel will throw an exception when the TableLayoutPanel is over-filled.
LayoutEngine No XML summary yet.
LayoutSettings Gets the layout settings associated with this TableLayoutPanel.
RowCount This sets the maximum number of rows allowed on this table instead of allocating actual spaces for these rows. So it is OK to set RowCount to Int32.MaxValue without causing out of memory exception
RowStyles Gets the collection of RowStyles for this TableLayoutPanel.

Documented Methods

Name Summary
#ctor Initializes a new instance of the TableLayoutPanel class.
CreateControlsInstance No XML summary yet.
GetCellPosition Gets the row and column position of the specified control.
GetColumn Gets the column position of the specified control.
GetColumnSpan Returns the column span value for the specified control.
GetColumnWidths Gets an array representing the widths (in pixels) of the columns in the TableLayoutPanel.
GetControlFromPosition Gets the control which covers the specified row and column. return null if we can't find one
GetPositionFromControl Gets the row and column position of the specified control.
GetRow Gets the row position of the specified control.
GetRowHeights Gets an array representing the heights (in pixels) of the rows in the TableLayoutPanel.
GetRowSpan Returns the row span value for the specified control.
ScaleCore No XML summary yet.
SetCellPosition Sets the row and column position of the specified control.
SetColumn Sets the column position of the specified control.
SetColumnSpan Sets the column span value for the specified control.
SetRow Sets the row position of the specified control.
SetRowSpan Sets the row span value for the specified control.

Documented Events

No documented members yet.

Notes

  • This page was generated from the public XML documentation of ModernFormsNext.
  • Base members inherited from Control, ScrollableControl, WindowBase, or other parent types may not all be repeated here.

ModernFormsNext

Clone this wiki locally