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

ReadingOrder

Enum Class ReadingOrder

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

public enum ReadingOrder extends Enum<ReadingOrder>
指定文本阅读顺序。

使用此枚举可以控制单元格或区域中文本的阅读方式,例如使用上下文顺序,或强制从左到右或从右到左显示。


 worksheet.getRange("A1").setValue("مرحبا");
 worksheet.getRange("A1").setReadingOrder(ReadingOrder.RightToLeft);
 
  • Enum Constant Details

    • Context

      public static final ReadingOrder Context
      指定上下文顺序。
    • LeftToRight

      public static final ReadingOrder LeftToRight
      指定从左到右的顺序。
    • RightToLeft

      public static final ReadingOrder RightToLeft
      指定从右到左的顺序。
  • Method Details

    • values

      public static ReadingOrder[] 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 ReadingOrder 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 ReadingOrder forValue(int value)