ExcelBuilder
ClassWorkbook:
XLWorkbook
public
ClosedXML
workbook instance.Worksheets:
Worksheet[]
public
Worksheet
instances associated with the ExcelBuilder
.ExcelBuilder(params Worksheet[] worksheets)
public
ExcelBuilder
class. It creates a new XLWorkbook
, sets the provided Worksheets
, and initializes components by adding worksheets to the workbook.Datasets(params ExcelTable[] tables)
public static
IExcelBuilder
ExcelBuilder
instance with one worksheet named "data" and specified Excel tables.Datasets(string workSheetName, params ExcelTable[] tables)
public static
IExcelBuilder
ExcelBuilder
instance with one worksheet and specified name, along with Excel tables.Datasets(params Worksheet[] worksheets)
public static
IExcelBuilder
ExcelBuilder
instance with specified worksheets.Build()
public
IExcelExtractor
public
ExcelBuilder
instance and associated resources.SaveAsFile(string fileName)
public
IDisposable
GetStream()
public
MemoryStream
Here is the breakdown for the Worksheet
class, starting with the constructor, followed by properties, and then methods:
Accessibility: public
Description: Initializes a new instance of the Worksheet
class with the specified name and associated Excel tables.
ShowGridLines Property:
bool
public
false
.Name Property:
string
public
Tables Property:
IEnumerable<ExcelTable>
public
ColumnsWidth Property:
List<double>
public
ExcelTable
Accessibility: public
Description: Initializes a new instance of the ExcelTable
class. It creates new lists for columns and rows.
AlignTableEnd Property:
bool
public
EmptyRowsBeforePresentation Property:
int
public
Columns Property:
List<ExcelColumn>
public
ExcelColumn
associated with the table.Rows Property:
List<ExcelRow>
public
ExcelRow
instances associated with the table.MaxCellsCount Property:
int
public
StartColumnNumber Property:
int
public
LastColumnNumber Property:
int
public
StartingRowNumber Property:
int
public
LastRowNumber Property:
int
public
LinkedTable Property:
ExcelTable
public
GetColumn Method:
public
ExcelColumn
with the specified column name or actual name.GetColumn Method:
public
ExcelColumn
with the specified column number.Link Method:
public
ExcelTable
.ExcelRow
Class:Default Constructor:
public
ExcelRow
class with an empty list of cells and the default row style.Constructor with Cell Values:
public
ExcelRow
class with specified cell values. Calls the default constructor internally.Constructor with RowStyle and Cell Values:
public
ExcelRow
class with a specified row style and cell values. Calls the default constructor internally.Constructor with RowStyle:
public
ExcelRow
class with a specified row style. Calls the default constructor internally.Cells:
List<ExcelCell>
public
ExcelCell
instances associated with the row.RowStyle:
RowStyle
public
RowStyle
for the row.SpanRowToMaxColumns:
bool
public
IsFrozen:
bool
public
RowNumber:
int
internal
SpanToMaxRowCells:
public
SpanRowToMaxColumns
property to true
.Freeze:
public
Now, let's proceed to the ExcelColumn
class.
ExcelColumn
Class:
Constructor with ColumnName and ActualColumnName:
public
ExcelColumn
class with the specified column name, actual column name, and the default column style.Constructor with ColumnName, ActualColumnName, and ColumnStyle:
public
ExcelColumn
class with the specified column name, actual column name, and column style.ColumnName:
string
public
ActualName:
string
public
ColumnStyle:
ColumnStyle
public
ColumnStyle
for the column.ColumnNumber:
int
internal
SpannedLastColumnNumber:
int
internal
ExcelStyle
Class:Default Constructor:
public
ExcelStyle
class.Constructor with AllowCellsToBeBordered:
public
ExcelStyle
class with the specified option to allow cells to be bordered.FontBold:
bool?
public
AlignmentHorizontal:
XLAlignmentHorizontalValues?
public
AlignmentVertical:
XLAlignmentVerticalValues?
public
BackroundColor:
XLColor?
public
FontColor:
XLColor?
public
FontSize:
double
public
TopBorder:
XLBorderStyleValues?
public
BottomBorder:
XLBorderStyleValues?
public
LeftBorder:
XLBorderStyleValues?
public
RightBorder:
XLBorderStyleValues?
public
AddCellsToSpan:
bool
public
AllowCellsToBeBordered:
bool?
public
public virtual
IXLStyle
with the style properties.ColumnStyle
Class:public
ColumnStyle
class.int
public
CellStyle
Class:public
CellStyle
class with the specified option to allow cells to be bordered.Colspan:
int
public virtual
Rowspan:
int
public virtual
IsWrapped:
bool
public
public override
IXLStyle
with the style properties, including wrap text.RowStyle
Class:public
RowStyle
class with the specified option to allow cells to be bordered.double
public
ExcelCell
Class:Default Constructor:
public
ExcelCell
class with the default cell style and an empty rich text.Constructor with CellStyle:
public
ExcelCell
class with the specified cell style.Constructor with Value:
public
ExcelCell
class with the specified cell value.Constructor with RichText:
public
ExcelCell
class with the specified rich text.Constructor with RichText and CellStyle:
public
ExcelCell
class with the specified rich text and cell style.Constructor with Value and CellStyle:
public
ExcelCell
class with the specified cell value and cell style.CellStyle:
CellStyle
public
CellStyle
for the cell.Value:
string
public
CellNumber:
int
internal
RichText:
RichText
public
RichTextValue
Class:Bold:
bool
public
FontColor:
XLColor?
public
Italic:
bool
public
StrikeThrough:
bool
public
Value:
string
public
UpdateStyleTo:
public
IXLRichString
with the properties of the RichTextValue
.RichText
Class:public
RichText
class with an empty list of RichTextValue
instances.bool
public
Add:
public
RichTextValue
to the list.AddALine:
public
RichTextValue
in the list.GetValues:
public
RichTextValue
instances.This concludes the breakdown for the ExcelCell
, RichTextValue
, and RichText
classes. Let me know if you'd like to proceed with another class.
ExcelCollectionEx
Class:AddCell
Method (1):
public static
ExcelCell
with the specified value to the collection.AddCell
Method (2):
public static
ExcelCell
with the specified value and ExcelTable.CellStyle
to the collection. If AddCellsToSpan
is true
in the provided cellStyle
, additional cells are added to the collection to match the colspan.AddCell
Method (3):
public static
ExcelCell
with the specified value and ExcelTable.CellStyle
to the ExcelRow
collection. If AddCellsToSpan
is true
in the provided cellStyle
, additional cells are added to the row to match the colspan.Values
Method:
public static
ExcelRow
by extracting values from each ExcelCell
.AddColumn
Method:
internal static
ExcelColumn
to the collection with the specified column name, actual column name, and ExcelTable.ColumnStyle
.AddCell
Method (4):
public static
ExcelCell
to the ExcelRow
collection.Add
Method (1):
public static
ExcelRow
to the collection with the specified cell values.Add
Method (2):
public static
ExcelRow
to the collection. It is intended for representing an empty row.Add
Method (3):
public static
ExcelRow
to the collection with the specified row style and cell values.Add
Method (4):
public static
ExcelRow
to the collection with the specified ExcelTable.CellStyle
and cell values.Add
Method (5):
public static
ExcelRow
to the collection with the specified ExcelTable.RowStyle
, ExcelTable.CellStyle
, and cell values.Add
Method (6):
public static
ExcelCell
to the ExcelRow
collection.Add
Method (7):
public static
ExcelCell
to the ExcelRow
collection with the specified ExcelTable.RowStyle
.AddRange
Method (1):
public static
ExcelTable.ExcelCell
to the collection with the specified ExcelTable.CellStyle
and cell values.AddRange
Method (2):
public static
ExcelCell
to the ExcelRow
collection.AddRange
Method (3):
public static
ExcelCell
to the ExcelRow
collection with the specified ExcelTable.RowStyle
.