Table of Contents

Class ExcelColumnOrderAttribute

Namespace
BigExcelCreator.ClassAttributes
Assembly
BigExcelCreator.dll

Specifies the column order for a property when exporting to Excel.

[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public sealed class ExcelColumnOrderAttribute : Attribute
Inheritance
ExcelColumnOrderAttribute
Inherited Members

Remarks

This attribute is used to control the order in which properties are exported as columns in an Excel worksheet. Properties are ordered by their Order value in ascending order.

Constructors

ExcelColumnOrderAttribute(int)

Specifies the column order for a property when exporting to Excel.

public ExcelColumnOrderAttribute(int order)

Parameters

order int

The zero-based position of the column within the Excel sheet.

Remarks

This attribute is used to control the order in which properties are exported as columns in an Excel worksheet. Properties are ordered by their Order value in ascending order.

Properties

Order

Gets the zero-based position of the item within its containing collection.

public int Order { get; }

Property Value

int