[]
Serializable, Comparable<Direction>, Constable此枚举对应于 Excel 的 xlDirection 常量,用于指示向上、向下、向左或向右等移动方向。
Workbook workbook = new Workbook();
IWorksheet worksheet = workbook.getActiveSheet();
worksheet.getRange("A1").setValue("Start");
Direction direction = Direction.forValue(-4121);
String nextCell = direction == Direction.Down ? "A2" : "B1";
worksheet.getRange(nextCell).setValue("Next");
Object nextValue = worksheet.getRange("A2").getValue();
Enum.EnumDesc<E extends Enum<E>>static DirectionforValue(int value) intgetValue()static Directionstatic Direction[]values()name - the name of the enum constant to be returned.IllegalArgumentException - if this enum class has no constant with the specified nameNullPointerException - if the argument is nullvalue - The Excel constant value.