[]
Specifies the position of an icon relative to a cell.
Use this enum with CellDecorationIcon to control whether a cell decoration icon appears on the left or right side of the cell, on either side of the cell text, or outside the cell boundary. This setting is used when applying decorations through Decoration.
public enum IconPosition
Public Enum IconPosition
worksheet.Range["A1"].Value = "Status";
ICellDecorationIcon icon = new CellDecorationIcon(
"data:image/svg+xml;base64,PHN2Zz4=",
12, 12, IconPosition.LeftOfText);
CellDecoration decoration = new CellDecoration(null, new List<ICellDecorationIcon> { icon });
worksheet.Range["A1"].Decoration = decoration;
| Name | Description |
|---|---|
| Left | Indicates that the icon is on the left side of the cell. |
| LeftOfText | Indicates that the icon is on the left side of the text in the cell. |
| OutsideLeft | Indicates that the icon is on the left outside of the cell. |
| OutsideRight | Indicates that the icon is on the right outside of the cell. |
| Right | Indicates that the icon is on the right side of the cell. |
| RightOfText | Indicates that the icon is on the right side of the text in the cell. |