[]
Serializable, Comparable<Direction>, ConstableThis enum corresponds to Excel's xlDirection constants and is used to indicate a movement direction such as up, down, left, or right.
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.