Skip to main content

TcxCustomTreeList.ApplyBestFit Method

Horizontally resizes the tree list, so that contents fit cells.

Declaration

procedure ApplyBestFit;

Remarks

Call the ApplyBestFit method if due to sizing operations the contents have been clipped. This method iterates through the tree list’s visible bands and calls their ApplyBestFit method.

To prohibit column sizing for end-users, set the tree list’s OptionsCustomizing.ColumnHorzSizing property to False. To prohibit sizing of a particular column, set the column’s Options.Sizing property to False.

To limit a column’s width to a certain value when applying Best Fit to this column, use the BestFitMaxWidth property. To adjust the columns, use the AdjustColumnsWidth method.

See Also