Table of Contents

Class ExcelStyleFormatAttribute

Namespace
BigExcelCreator.ClassAttributes
Assembly
BigExcelCreator.dll

Format 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

ExcelStyleFormatAttribute(string, StylingPriority)

Format to apply to cells.

public ExcelStyleFormatAttribute(string styleName, StylingPriority useStyleInHeader = StylingPriority.Header)

Parameters

styleName string

The style name to apply to the cell.

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

StyleName

The style name to apply to the cell.

public string StyleName { get; }

Property Value

string

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