Class Workbook
- Namespace
- FileFormat.Cells
- Assembly
- FileFormat.Cells.dll
public class Workbook : IDisposable
- Inheritance
-
Workbook
- Implements
-
- Inherited Members
-
Constructors
public Workbook(string filePath)
Parameters
filePath
string
Fields
protected SpreadsheetDocument spreadsheetDocument
Field Value
- SpreadsheetDocument
protected WorkbookStylesPart stylesPart
Field Value
- WorkbookStylesPart
protected WorkbookPart workbookpart
Field Value
- WorkbookPart
protected WorksheetPart worksheetPart
Field Value
- WorksheetPart
Properties
public BuiltInDocumentProperties BuiltinDocumentProperties { get; set; }
Property Value
- BuiltInDocumentProperties
public uint DefaultStyleId { get; }
Property Value
- uint
public List<Worksheet> Worksheets { get; }
Property Value
- List<Worksheet>
Methods
public Worksheet AddSheet(string sheetName)
Parameters
sheetName
string
Returns
- Worksheet
public uint CreateStyle(string fontName, double fontSize, string hexColor)
Parameters
fontName
string
fontSize
double
hexColor
string
Returns
- uint
protected virtual void Dispose(bool disposing)
Parameters
disposing
bool
public bool RemoveSheet(string sheetName)
Parameters
sheetName
string
Returns
- bool
public void Save(Stream stream)
Parameters
stream
Stream
public void Save(string filePath)
Parameters
filePath
string
public void UpdateDefaultStyle(string newFontName, double newFontSize, string hexColor)
Parameters
newFontName
string
newFontSize
double
hexColor
string