Class ExcelSpreadsheet
public sealed class ExcelSpreadsheet : IDisposable
- Inheritance
-
ExcelSpreadsheet
- Implements
- Inherited Members
Constructors
ExcelSpreadsheet(Stream)
public ExcelSpreadsheet(Stream fromStream)
Parameters
fromStreamStream
Fields
NUMBER_FORMAT_DATE
public const int NUMBER_FORMAT_DATE = 14
Field Value
NUMBER_FORMAT_DECIMAL
public const int NUMBER_FORMAT_DECIMAL = 2
Field Value
NUMBER_FORMAT_INTEGER
public const int NUMBER_FORMAT_INTEGER = 1
Field Value
Methods
CopyRow(uint, long, long)
public void CopyRow(uint sheetId, long fromRow, long toRow)
Parameters
CreateCellFormat(bool, bool, double, uint?, uint?, bool)
[Obsolete("Use the overload with numberFormatId and italic")]
public uint CreateCellFormat(bool border, bool bold, double fontSize, uint? fontColorARGB, uint? backgroundColorARGB, bool centre)
Parameters
Returns
CreateCellFormat(bool, bool, double, uint?, uint?, bool, NumberFormatId?, bool, bool)
public uint CreateCellFormat(bool border, bool bold, double fontSize, uint? fontColorARGB, uint? backgroundColorARGB, bool centre, ExcelSpreadsheet.NumberFormatId? numberFormatId, bool italic, bool wrapText)
Parameters
borderboolboldboolfontSizedoublefontColorARGBuint?backgroundColorARGBuint?centreboolnumberFormatIdExcelSpreadsheet.NumberFormatId?italicboolwrapTextbool
Returns
CreateCellFormat(bool, double, uint?, uint?, bool, NumberFormatId?, bool, bool, BorderStyleValues, BorderStyleValues, BorderStyleValues, BorderStyleValues)
public uint CreateCellFormat(bool bold, double fontSize, uint? fontColorARGB, uint? backgroundColorARGB, bool centre, ExcelSpreadsheet.NumberFormatId? numberFormatId, bool italic, bool wrapText, BorderStyleValues left, BorderStyleValues top, BorderStyleValues right, BorderStyleValues bottom)
Parameters
boldboolfontSizedoublefontColorARGBuint?backgroundColorARGBuint?centreboolnumberFormatIdExcelSpreadsheet.NumberFormatId?italicboolwrapTextboolleftBorderStyleValuestopBorderStyleValuesrightBorderStyleValuesbottomBorderStyleValues
Returns
CreateCellFormat(ExcelStyle)
public uint CreateCellFormat(ExcelStyle style)
Parameters
styleExcelStyle
Returns
CreateExcelWorksheet(string)
public ExcelWorksheet CreateExcelWorksheet(string name)
Parameters
namestring
Returns
CreateNumberFormat(string)
public ExcelSpreadsheet.NumberFormatId CreateNumberFormat(string formatCode)
Parameters
formatCodestring
Returns
CreateWorksheet(string)
[Obsolete("Use CreateExcelWorksheet and call its methods")]
public uint CreateWorksheet(string name)
Parameters
namestring
Returns
DeleteWorksheet(uint)
public void DeleteWorksheet(uint sheetId)
Parameters
sheetIduint
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
ExtendConditionalFormattingTo(uint, int, long)
public void ExtendConditionalFormattingTo(uint sheetId, int column, long row)
Parameters
GetColumnIndex(string)
public static int GetColumnIndex(string columnName)
Parameters
columnNamestring
Returns
GetColumnName(int)
public static string GetColumnName(int columnIndex)
Parameters
columnIndexint
Returns
GetRowCount(uint)
public int GetRowCount(uint sheetId)
Parameters
sheetIduint
Returns
MergeRange(uint, int, long, int, long)
public void MergeRange(uint sheetId, int startColumn, long startRow, int endColumn, long endRow)
Parameters
SetCellStyle(uint, int, long, uint)
public void SetCellStyle(uint sheetId, int column, long row, uint styleIndex)
Parameters
SetColumnWidth(uint, int, double)
public void SetColumnWidth(uint sheetId, int column, double width)
Parameters
SetColumnWidthInPixels(uint, int, int)
public void SetColumnWidthInPixels(uint sheetId, int column, int widthInPixels)
Parameters
SetRowHeight(uint, long, double)
public void SetRowHeight(uint sheetId, long row, double excelHeight)
Parameters
SetRowHeightInPixels(uint, long, int)
public void SetRowHeightInPixels(uint sheetId, long row, int heightInPixels)
Parameters
SetWorksheetName(uint, string)
public void SetWorksheetName(uint sheetId, string name)
Parameters
UnmergeRange(uint, int, long, int, long)
public void UnmergeRange(uint sheetId, int startColumn, long startRow, int endColumn, long endRow)
Parameters
UpdateCell(uint, int, long, DateTime, uint?)
public void UpdateCell(uint sheetId, int column, long row, DateTime value, uint? styleIndex = null)
Parameters
UpdateCell(uint, int, long, decimal, uint?)
public void UpdateCell(uint sheetId, int column, long row, decimal value, uint? styleIndex = null)
Parameters
UpdateCell(uint, int, long, int, uint?)
public void UpdateCell(uint sheetId, int column, long row, int value, uint? styleIndex = null)
Parameters
UpdateCell(uint, int, long, long, uint?)
public void UpdateCell(uint sheetId, int column, long row, long value, uint? styleIndex = null)
Parameters
UpdateCell(uint, int, long, string, uint?)
public void UpdateCell(uint sheetId, int column, long row, string value, uint? styleIndex = null)
Parameters
UpdateCell(uint, int, long, Currency, uint?)
public void UpdateCell(uint sheetId, int column, long row, Currency value, uint? styleIndex = null)
Parameters
UpdateValue(uint, int, long, DateTime)
public void UpdateValue(uint sheetId, int column, long row, DateTime value)
Parameters
UpdateValue(uint, int, long, decimal)
public void UpdateValue(uint sheetId, int column, long row, decimal value)
Parameters
UpdateValue(uint, int, long, long)
public void UpdateValue(uint sheetId, int column, long row, long value)
Parameters
UpdateValue(uint, int, long, string?)
public void UpdateValue(uint sheetId, int column, long row, string? value)
Parameters
UpdateValue(uint, int, long, Currency)
public void UpdateValue(uint sheetId, int column, long row, Currency value)