[]
Represents a cell decoration.
A cell decoration can include a corner fold and/or icons to visually annotate cells. Use this class with Decoration to apply decorations to a cell or range of cells. This is a SpreadJS-specific feature, supported for export to .sjs and .ssjson formats.
public class CellDecoration : ICellDecoration
Public Class CellDecoration
Implements ICellDecoration
ICornerFold cornerFold = new CornerFold(Color.Red, CornerPosition.LeftTop, 8);
ICellDecorationIcon icon = new CellDecorationIcon("data:image/svg+xml;base64,PHN2Zz4=", 12, 12, IconPosition.OutsideRight);
CellDecoration decoration = new CellDecoration(cornerFold, new List<ICellDecorationIcon> { icon });
worksheet.Range["A1"].Decoration = decoration;
| Name | Description |
|---|---|
| CellDecoration(ICornerFold) | Creates a new instance of the CellDecoration class. |
| CellDecoration(ICornerFold, IReadOnlyList<ICellDecorationIcon>) | Creates a new instance of the CellDecoration class. |
| CellDecoration(IReadOnlyList<ICellDecorationIcon>) | Creates a new instance of the CellDecoration class. |
| Name | Description |
|---|---|
| CornerFold | Gets the corner fold of the cell decoration. |
| Icons | Gets the icons of the cell decoration. |