[]
        
首页
开发者学堂
文档
论坛
市场
生态机会
活动
立即试用
(Showing Draft Content)

SpreadJSTabStripPosition

Enum Class SpreadJSTabStripPosition

java.lang.Object
java.lang.Enum<SpreadJSTabStripPosition>
com.grapecity.documents.excel.SpreadJSTabStripPosition
All Implemented Interfaces:
Serializable, Comparable<SpreadJSTabStripPosition>, Constable

public enum SpreadJSTabStripPosition extends Enum<SpreadJSTabStripPosition>
指定 SpreadJS 标签栏相对于工作簿的位置。

将此枚举与 IWorkbookView.setTabStripPosition(SpreadJSTabStripPosition) 一起使用,可以将 SpreadJS 标签栏放置在工作簿的顶部、底部、左侧或右侧。


 SpreadJSTabStripPosition position = SpreadJSTabStripPosition.Top;
 workbook.getBookView().setTabStripPosition(position);
 SpreadJSTabStripPosition currentPosition = workbook.getBookView().getTabStripPosition();
 workbook.save("workbook.sjs");
 
  • Enum Constant Details

  • Method Details

    • values

      public static SpreadJSTabStripPosition[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SpreadJSTabStripPosition valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
    • forValue

      public static SpreadJSTabStripPosition forValue(int value)