[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.CellDecoration

CellDecoration Class

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.

Inheritance
CellDecoration
Implements
Namespace: GrapeCity.Documents.Excel
Assembly: DS.Documents.Excel.dll
Syntax
public class CellDecoration : ICellDecoration
Public Class CellDecoration
    Implements ICellDecoration
Examples
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;

Constructors

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.

Properties

Name Description
CornerFold

Gets the corner fold of the cell decoration.

Icons

Gets the icons of the cell decoration.