[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.CellDecorationIcon

CellDecorationIcon Class

Represents a cell decoration icon.

Use this class to create an icon that can be added to a cell's decoration via CellDecoration. The icon is defined by a source string (typically a data URI for an SVG or image), dimensions in pixels, and a position relative to the cell specified by IconPosition.

Inheritance
CellDecorationIcon
Implements
Namespace: GrapeCity.Documents.Excel
Assembly: DS.Documents.Excel.dll
Syntax
public class CellDecorationIcon : ICellDecorationIcon
Public Class CellDecorationIcon
    Implements ICellDecorationIcon
Examples
CellDecorationIcon icon = new CellDecorationIcon(
    "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiLz4=",
    12, 12, IconPosition.OutsideRight);
worksheet.Range["A1"].Value = "Hello";
worksheet.Range["A1"].Decoration = new CellDecoration(null, new List<ICellDecorationIcon> { icon });

Constructors

Name Description
CellDecorationIcon(string, int, int, IconPosition)

Creates a new instance of the CellDecorationIcon class.

Properties

Name Description
Height

Gets the icon height in pixels.

Position

Gets the icon position.

Src

Gets the icon src string.

Width

Gets the icon width in pixels.