ICellDecorator interface
namespace: Serenity.Reporting assembly: Serenity.Net.Services
Cell decorator interface mainly used for Excel export styling.
public interface ICellDecorator
Members
name | description |
---|---|
Background { get; set; } | Assign to set background color of the current cell |
Foreground { get; set; } | Assign to set text color of the current cell |
Format { get; set; } | Assign to set display format of the current cell. The format should be in Excel formatting style. |
Item { get; set; } | The input item |
Name { get; set; } | The column name |
Value { get; set; } | Value of the current cell. If desired, it can be modified by the decorator. |
Decorate() | The decorator should apply its formatting in this method. It is called by the exporter. |
See Also
- Source: ICellDecorator.cs