Package com.grapecity.documents.excel
Class WorkbookOptions
java.lang.Object
com.grapecity.documents.excel.WorkbookOptions
Options class for creating the workbook.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet if the workbook uses column width.voidsetPixelBasedColumnWidth(boolean value) By default, the column width uses character count in workbook.
-
Constructor Details
-
WorkbookOptions
public WorkbookOptions()
-
-
Method Details
-
getPixelBasedColumnWidth
public boolean getPixelBasedColumnWidth()Get if the workbook uses column width.- Returns:
trueif the workbook should use pixel-based column width.
Otherwise, the workbook should use character count based column width. The default value isfalse.
-
setPixelBasedColumnWidth
public void setPixelBasedColumnWidth(boolean value) By default, the column width uses character count in workbook.
Therefore, this option is introduced to allow users to decide whether to use pixels as the column width unit in workbook,
in order to achieve the API behaviors (e.g. auto-fit column) and results (e.g. PDF and image rendering) to be closer to SpreadJS.- Parameters:
value-trueif the workbook should use pixel-based column width.
Otherwise, the workbook should use character count based column width. The default value isfalse.
-