|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
AutoSize Behavior in the TableLayoutPanel Control
Distinct AutoSize Behaviors
Thecontrol supports automatic sizing behavior in the following ways:
Through theproperty on the TableLayoutPanel control’s column and row styles.
The AutoSize Property with Row and Column Styles
The following table describes the interaction between the AutoSize property and the TableLayoutPanel control’s column and row styles.
|AutoSize setting||Style interaction|
The TableLayoutPanel control proceeds from left to right, and allocates space for the column or row or in the following order.
Similar to the previous interaction, with the exception that Percent columns or rows acquire an automatic sizing aspect.
The TableLayoutPanel control expands the column or row to create adequate free space, so that no column or row with Percent styling clips its contents. The TableLayoutPanel control allocates the new space proportionally according to the Width or Height property.