接口 IWorkbookView
public interface IWorkbookView
Represents the view settings of this workbook.
-
方法概要
修饰符和类型方法说明boolean
Gets whether to allow reordering of worksheet tabs.Get background color of all worksheets.boolean
True if the horizontal scroll bar is displayed.boolean
True if the vertical scroll bar is displayed.boolean
True if the workbook tabs are displayed.Get background color of workbook gray area.boolean
Gets whether to show the New Tab button.Gets the display mode when date/number data width longer than column width.boolean
Gets whether to allow editing of the worksheet name.boolean
Gets whether to display navigation buttons in the workbook.double
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).Gets the position of tab strip relative to the workbook.int
Gets the width of tab strip.void
setAllowSheetReorder
(boolean value) Sets whether to allow reordering of worksheet tabs.void
setBackColor
(Color color) Set background color of all worksheets.void
setDisplayHorizontalScrollBar
(boolean value) Sets the horizontal scroll bar is displayed.void
setDisplayVerticalScrollBar
(boolean value) Sets the vertical scroll bar is displayed.void
setDisplayWorkbookTabs
(boolean value) Sets if display the workbook tabs.void
setGrayAreaBackColor
(Color color) Set background color of workbook gray area.void
setNewTabVisible
(boolean value) Sets whether to show the New Tab button.void
setNumbersFitMode
(NumbersFitMode value) Sets the display mode when date/number data width longer than column width.void
setTabEditable
(boolean value) Sets whether to allow editing of the worksheet name.void
setTabNavigationVisible
(boolean value) Sets whether to display navigation buttons in the workbook.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).void
Sets the position of tab strip relative to the workbook.void
setTabStripWidth
(int value) Sets the width of tab strip.
-
方法详细资料
-
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.- 返回:
-
setBackColor
Set background color of all worksheets. SpreadJS only.- 参数:
color
-
-
getGrayAreaBackColor
Color getGrayAreaBackColor()Get background color of workbook gray area. SpreadJS only.- 返回:
-
setGrayAreaBackColor
Set background color of workbook gray area. SpreadJS only.- 参数:
color
-
-
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.
-