NanoXLSX.Core 3.0.0-rc.3
Loading...
Searching...
No Matches
NanoXLSX.Column Class Reference

Class representing a column of a worksheet. More...

Public Member Functions

Style SetDefaultColumnStyle (Style defaultColumnStyle, bool unmanaged=false)
 Sets the default style of the column.
 Column (int columnCoordinate)
 Constructor with column number.
 Column (string columnAddress)
 Constructor with column address.

Properties

string ColumnAddress [get, set]
 Column address (A to XFD).
bool HasAutoFilter [get, set]
 If true, the column has auto filter applied, otherwise not.
bool IsHidden [get, set]
 If true, the column is hidden, otherwise visible.
int Number [get, set]
 Column number (0 to 16383).
float Width [get, set]
 Width of the column.
Style DefaultColumnStyle [get]
 Gets the default style of the column.

Detailed Description

Class representing a column of a worksheet.

Definition at line 17 of file Column.cs.

Constructor & Destructor Documentation

◆ Column() [1/2]

NanoXLSX.Column.Column ( int columnCoordinate)

Constructor with column number.

Parameters
columnCoordinateColumn number (zero-based, 0 to 16383)

Definition at line 124 of file Column.cs.

◆ Column() [2/2]

NanoXLSX.Column.Column ( string columnAddress)

Constructor with column address.

Parameters
columnAddressColumn address (A to XFD)

Definition at line 133 of file Column.cs.

Member Function Documentation

◆ SetDefaultColumnStyle()

Style NanoXLSX.Column.SetDefaultColumnStyle ( Style defaultColumnStyle,
bool unmanaged = false )

Sets the default style of the column.

Parameters
defaultColumnStyleStyle to assign as default column style. Can be null (to clear)
unmanagedInternally used: If true, the style repository is not invoked and only the style object of the cell is updated. Do not use!
Returns
If the passed style already exists in the repository, the existing one will be returned, otherwise the passed one

Definition at line 93 of file Column.cs.

Property Documentation

◆ ColumnAddress

string NanoXLSX.Column.ColumnAddress
getset

Column address (A to XFD).

Definition at line 27 of file Column.cs.

◆ DefaultColumnStyle

Style NanoXLSX.Column.DefaultColumnStyle
get

Gets the default style of the column.

Definition at line 82 of file Column.cs.

◆ HasAutoFilter

bool NanoXLSX.Column.HasAutoFilter
getset

If true, the column has auto filter applied, otherwise not.

Definition at line 44 of file Column.cs.

◆ IsHidden

bool NanoXLSX.Column.IsHidden
getset

If true, the column is hidden, otherwise visible.

Definition at line 48 of file Column.cs.

◆ Number

int NanoXLSX.Column.Number
getset

Column number (0 to 16383).

Definition at line 53 of file Column.cs.

◆ Width

float NanoXLSX.Column.Width
getset

Width of the column.

Definition at line 66 of file Column.cs.


The documentation for this class was generated from the following file: