Package com.grapecity.documents.excel
Interface IWorkbookView
public interface IWorkbookView
Represents the view settings of this workbook.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanGets whether to allow reordering of worksheet tabs.Get background color of all worksheets.booleanTrue if the horizontal scroll bar is displayed.booleanTrue if the vertical scroll bar is displayed.booleanTrue if the workbook tabs are displayed.Get background color of workbook gray area.booleanGets whether to show the New Tab button.Gets the display mode when date/number data width longer than column width.booleanGets whether to allow editing of the worksheet name.booleanGets whether to display navigation buttons in the workbook.doubleReturns or sets the ratio of the width of the workbook's tab area to the width of the window's horizontal scroll bar (as a number between 0 (zero) and 1; The default value is 0.6).Gets the position of tab strip relative to the workbook.intGets the width of tab strip.voidsetAllowSheetReorder(boolean value) Sets whether to allow reordering of worksheet tabs.voidsetBackColor(Color color) Set background color of all worksheets.voidsetDisplayHorizontalScrollBar(boolean value) Sets the horizontal scroll bar is displayed.voidsetDisplayVerticalScrollBar(boolean value) Sets the vertical scroll bar is displayed.voidsetDisplayWorkbookTabs(boolean value) Sets if display the workbook tabs.voidsetGrayAreaBackColor(Color color) Set background color of workbook gray area.voidsetNewTabVisible(boolean value) Sets whether to show the New Tab button.voidsetNumbersFitMode(NumbersFitMode value) Sets the display mode when date/number data width longer than column width.voidsetTabEditable(boolean value) Sets whether to allow editing of the worksheet name.voidsetTabNavigationVisible(boolean value) Sets whether to display navigation buttons in the workbook.voidsetTabRatio(double value) Sets the ratio of the width of the workbook's tab area to the width of the window's horizontal scroll bar (as a number between 0 (zero) and 1; the default value is 0.6).voidSets the position of tab strip relative to the workbook.voidsetTabStripWidth(int value) Sets the width of tab strip.
-
Method Details
-
getDisplayHorizontalScrollBar
boolean getDisplayHorizontalScrollBar()True if the horizontal scroll bar is displayed. -
setDisplayHorizontalScrollBar
void setDisplayHorizontalScrollBar(boolean value) Sets the horizontal scroll bar is displayed. Read/write Boolean. -
getDisplayVerticalScrollBar
boolean getDisplayVerticalScrollBar()True if the vertical scroll bar is displayed. -
setDisplayVerticalScrollBar
void setDisplayVerticalScrollBar(boolean value) Sets the vertical scroll bar is displayed. Read/write Boolean. -
getTabRatio
double getTabRatio()Returns or sets the ratio of the width of the workbook's tab area to the width of the window's horizontal scroll bar (as a number between 0 (zero) and 1; The default value is 0.6). -
setTabRatio
void setTabRatio(double value) Sets the ratio of the width of the workbook's tab area to the width of the window's horizontal scroll bar (as a number between 0 (zero) and 1; the default value is 0.6). Read/write Double. -
getDisplayWorkbookTabs
boolean getDisplayWorkbookTabs()True if the workbook tabs are displayed. -
setDisplayWorkbookTabs
void setDisplayWorkbookTabs(boolean value) Sets if display the workbook tabs. -
getBackColor
Color getBackColor()Get background color of all worksheets. SpreadJS only.- Returns:
- The background color of all worksheets.
-
setBackColor
Set background color of all worksheets. SpreadJS only.- Parameters:
color- The background color to set for all worksheets.
-
getGrayAreaBackColor
Color getGrayAreaBackColor()Get background color of workbook gray area. SpreadJS only.- Returns:
- The background color of the workbook's gray area.
-
setGrayAreaBackColor
Set background color of workbook gray area. SpreadJS only.- Parameters:
color- The background color to set for the workbook's gray area.
-
getTabEditable
boolean getTabEditable()Gets whether to allow editing of the worksheet name. SpreadJS only. -
setTabEditable
void setTabEditable(boolean value) Sets whether to allow editing of the worksheet name. SpreadJS only. -
getAllowSheetReorder
boolean getAllowSheetReorder()Gets whether to allow reordering of worksheet tabs. SpreadJS only. -
setAllowSheetReorder
void setAllowSheetReorder(boolean value) Sets whether to allow reordering of worksheet tabs. SpreadJS only. -
getNewTabVisible
boolean getNewTabVisible()Gets whether to show the New Tab button. SpreadJS only. -
setNewTabVisible
void setNewTabVisible(boolean value) Sets whether to show the New Tab button. SpreadJS only. -
getTabStripPosition
SpreadJSTabStripPosition getTabStripPosition()Gets the position of tab strip relative to the workbook. SpreadJS only. -
setTabStripPosition
Sets the position of tab strip relative to the workbook. SpreadJS only. -
getTabStripWidth
int getTabStripWidth()Gets the width of tab strip. SpreadJS only. -
setTabStripWidth
void setTabStripWidth(int value) Sets the width of tab strip. SpreadJS only. -
getNumbersFitMode
NumbersFitMode getNumbersFitMode()Gets the display mode when date/number data width longer than column width. SpreadJS only. -
setNumbersFitMode
Sets the display mode when date/number data width longer than column width. SpreadJS only.
-