20 private string columnAddress;
22 private Style defaultColumnStyle;
29 get {
return columnAddress; }
32 if (
string.IsNullOrEmpty(value))
55 get {
return number; }
84 get {
return this.defaultColumnStyle; }
95 if (defaultColumnStyle ==
null)
97 this.defaultColumnStyle =
null;
102 this.defaultColumnStyle = defaultColumnStyle;
108 return this.defaultColumnStyle;
117 defaultColumnStyle =
null;
124 public Column(
int columnCoordinate) : this()
126 Number = columnCoordinate;
133 public Column(
string columnAddress) : this()
149 columnAddress = this.columnAddress,
150 number = this.number,
151 defaultColumnStyle = this.defaultColumnStyle
Class representing a cell of a worksheet.
static int ResolveColumn(string columnAddress)
Gets the column number from the column address (A - XFD).
static string ResolveColumnAddress(int columnNumber)
Gets the column address (A - XFD).
Class representing a column of a worksheet.
float Width
Width of the column.
string ColumnAddress
Column address (A to XFD).
int Number
Column number (0 to 16383).
Style SetDefaultColumnStyle(Style defaultColumnStyle, bool unmanaged=false)
Sets the default style of the column.
bool HasAutoFilter
If true, the column has auto filter applied, otherwise not.
Style DefaultColumnStyle
Gets the default style of the column.
Column(int columnCoordinate)
Constructor with column number.
Column(string columnAddress)
Constructor with column address.
bool IsHidden
If true, the column is hidden, otherwise visible.
Class for exceptions regarding range incidents (e.g. out-of-range).
Class to manage all styles at runtime, before writing XLSX files. The main purpose is deduplication a...
static StyleRepository Instance
Gets the singleton instance of the repository.
Style AddStyle(Style style)
Adds a style to the repository and returns the actual reference.
Class representing a Style with sub classes within a style sheet. An instance of this class is only a...
Class providing static methods to parse string values to specific types or to print object as languag...
static string ToUpper(string input)
Transforms a string to upper case with null check and invariant culture.
Class representing a worksheet of a workbook.
static readonly float DefaultWorksheetColumnWidth
Default column width as constant.
static readonly float MinColumnWidth
Minimum column width as constant.
static readonly float MaxColumnWidth
Maximum column width as constant.