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.