Class ExcelStyleFormatAttribute
- Namespace
- BigExcelCreator.ClassAttributes
- Assembly
- BigExcelCreator.dll
Format index to apply to cells.
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public sealed class ExcelStyleFormatAttribute : Attribute
- Inheritance
-
ExcelStyleFormatAttribute
- Inherited Members
Constructors
ExcelStyleFormatAttribute(int, StylingPriority)
Format index to apply to cells.
public ExcelStyleFormatAttribute(int format, StylingPriority useStyleInHeader = StylingPriority.Header)
Parameters
formatintThe format index to apply to the cell. Default is 0. See GetIndexByName(string).
useStyleInHeaderStylingPriorityWhether the header row will have this style of the one defined for the class with ExcelHeaderStyleFormatAttribute
Properties
Format
The format index to apply to the cell. Default is 0. See GetIndexByName(string).
public int Format { get; }
Property Value
UseStyleInHeader
Whether the header row will have this style of the one defined for the class with ExcelHeaderStyleFormatAttribute
public StylingPriority UseStyleInHeader { get; }