Table of Contents

Class SheetColumnAttribute

Namespace
SheetStream
Assembly
SheetStream.dll

Controls how a property is exported by LoadFromCollection<T>(IEnumerable<T>, LoadOptions?) and matched by ExcelReader.Read<T>.

[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
public sealed class SheetColumnAttribute : Attribute
Inheritance
SheetColumnAttribute
Inherited Members

Constructors

SheetColumnAttribute()

Creates the attribute without a header override.

public SheetColumnAttribute()

SheetColumnAttribute(string)

Creates the attribute with a header text.

public SheetColumnAttribute(string name)

Parameters

name string

Properties

Ignore

Skip this member.

public bool Ignore { get; set; }

Property Value

bool

Name

Header text; defaults to the property name (or its [DisplayName]).

public string? Name { get; set; }

Property Value

string

NumberFormat

Excel number format for the column, e.g. "#,##0.00".

public string? NumberFormat { get; set; }

Property Value

string

Order

Sort key; columns without an order keep declaration order after the ordered ones.

public int Order { get; set; }

Property Value

int