Adds a new sheet to the workbook with the specified name, rows, and columns.
Declaration
public Documents.Spreadsheet.Worksheet AddSheet(string name, int rows, int columns)
Parameters
Returns
Adds a new sheet to the workbook with the specified name, rows, and columns.
Declaration
public void AddSheet(Documents.Spreadsheet.Worksheet sheet)
Parameters
Gets the sheet with the specified name or null if not found.
Declaration
public Documents.Spreadsheet.Worksheet GetSheet(string name)
Parameters
Returns
Gets the index of the specified sheet in the workbook.
Declaration
public int IndexOf(Documents.Spreadsheet.Worksheet sheet)
Parameters
Returns
LoadFromCsvlink
Loads a CSV stream into a new Workbook with a single sheet.
Declaration
public static Documents.Spreadsheet.Workbook LoadFromCsv(IO.Stream stream, Documents.Spreadsheet.CsvImportOptions options)
Parameters
Returns
LoadFromStreamlink
Loads a workbook from the specified stream in the Open XML Spreadsheet format (XLSX).
Declaration
public static Documents.Spreadsheet.Workbook LoadFromStream(IO.Stream stream)
Parameters
Returns
MoveSheetlink
Moves a sheet from one position to another.
Declaration
public void MoveSheet(int fromIndex, int toIndex)
Parameters
RemoveSheetlink
Removes a sheet from the workbook.
Declaration
public bool RemoveSheet(Documents.Spreadsheet.Worksheet sheet)
Parameters
Returns
SaveAsCsvlink
Saves a single sheet of the workbook to the specified stream in CSV format. By default the first sheet is exported; pass Sheet to choose a different one. CSV is single-sheet by design, matching Excel's "Save As CSV" behavior.
Declaration
public void SaveAsCsv(IO.Stream stream, Documents.Spreadsheet.CsvExportOptions options)
Parameters
SaveToStreamlink
Saves the workbook to the specified stream in the Open XML Spreadsheet format (XLSX).
Declaration
public void SaveToStream(IO.Stream stream)
Parameters