[]
Specifies the visibility of a cell label watermark.
Use this enum with LabelOptions and Visibility 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.
public enum LabelVisibility
Public Enum LabelVisibility
IRange range = worksheet.Range["A3"];
range.Watermark = "OTHER INFORMATION";
range.CellPadding = new CellPadding(20, 0, 0, 0);
range.LabelOptions.Visibility = LabelVisibility.visible;
range.LabelOptions.ForeColor = Color.FromArgb(51, 51, 51);
range.LabelOptions.Margin = new Margin(2, 0, 0, 0);
range.LabelOptions.Font.Size = 7;
LabelVisibility visibility = range.LabelOptions.Visibility;
| Name | Description |
|---|---|
| auto | Specifies that the watermark is shown in the padding area when the cell contains a value, and is shown in the cell area when the cell is empty. |
Specifies that the watermark is not shown in the padding area, and is shown in the cell area based on whether the cell has a value. |
|
| visible | Specifies that the watermark is always shown in the padding area and is not shown in the cell area, regardless of whether the cell has a value. |