Skip to main content

TcxTreeListBand.ApplyBestFit Method

Adjusts the band width to display column content in full.

Declaration

procedure ApplyBestFit;

Remarks

Call the ApplyBestFit procedure to adjust the widths of all visible columns to display their content in full. The ApplyBestFit procedure iterates through all visible columns of the band and calls their ApplyBestFit procedures.

To limit the maximum width of a column when the ApplyBestFit procedure adjusts its size, use the column’s BestFitMaxWidth property.

End-User Functionality

Users can double-click the right border of a band header to adjust the widths of all columns according to their content if the Options.Sizing property and the Tree List control’s OptionsCustomizing.BandHorzSizing properties are set to True.

See Also