Table of Contents

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

format int

The format index to apply to the cell. Default is 0. See GetIndexByName(string).

useStyleInHeader StylingPriority

Whether 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

int

UseStyleInHeader

Whether the header row will have this style of the one defined for the class with ExcelHeaderStyleFormatAttribute

public StylingPriority UseStyleInHeader { get; }

Property Value

StylingPriority