[]
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.
public class CellDecorationIcon : ICellDecorationIcon
Public Class CellDecorationIcon
Implements ICellDecorationIcon
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 });
| Name | Description |
|---|---|
| CellDecorationIcon(string, int, int, IconPosition) | Creates a new instance of the CellDecorationIcon class. |
| 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. |