[]
Serializable, Comparable<LabelVisibility>, ConstableUse this enum with IRange.getLabelOptions() and ILabelOptions.setVisibility(LabelVisibility) to control whether a watermark is shown in the padding area, the cell area, or automatically based on whether the cell has a value. Use visible to always show the watermark in the padding area, hidden to show it in the cell area based on the cell value, or auto to switch between the two behaviors automatically.
IRange range = worksheet.getRange("A3");
range.setWatermark("OTHER INFORMATION");
range.setCellPadding(new CellPadding(20, 0, 0, 0));
range.getLabelOptions().setVisibility(LabelVisibility.visible);
range.getLabelOptions().setForeColor(Color.FromArgb(51, 51, 51));
range.getLabelOptions().setMargin(new Margin(2, 0, 0, 0));
range.getLabelOptions().getFont().setSize(7);
LabelVisibility visibility = range.getLabelOptions().getVisibility();
Enum.EnumDesc<E extends Enum<E>>static LabelVisibilitygetLabelVisibility(int value) intgetValue()static LabelVisibilitystatic LabelVisibility[]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 integer value to convert.