[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.WorkbookOptions.PixelBasedColumnWidth

PixelBasedColumnWidth Property

PixelBasedColumnWidth

Gets or sets whether the workbook uses pixel-based column width.

By default, a workbook uses character count based column width. Set this option to true to use pixels as the column width unit so that API behaviors such as auto-fit columns and rendering results such as PDF and image output are closer to SpreadJS.

Declaration
public bool PixelBasedColumnWidth { get; set; }
Public Property PixelBasedColumnWidth As Boolean
Examples
WorkbookOptions options = new WorkbookOptions();
options.PixelBasedColumnWidth = true;
bool pixelBased = options.PixelBasedColumnWidth;
Workbook workbook = new Workbook(options);