[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IPageSetup.BestFitColumns

BestFitColumns Property

BestFitColumns

Gets or sets whether column widths are adjusted to fit the longest text width for printing.

When this property is true, the worksheet uses best-fit column widths during printing.

Declaration
bool BestFitColumns { get; set; }
Property BestFitColumns As Boolean
Examples
IPageSetup pageSetup = worksheet.PageSetup;
pageSetup.BestFitColumns = true;
bool bestFitColumns = pageSetup.BestFitColumns;