Method For
- Namespace
- DocWright.Spreadsheet.Rendering
- Assembly
- DocWright.Spreadsheet.Rendering.dll
For(XlsxDocumentSheet, FontEngine, IConversionDiagnostics?)
Reads the geometry of a sheet.
public static SpreadsheetGeometry For(XlsxDocumentSheet sheet, FontEngine fonts, IConversionDiagnostics? diagnostics = null)
Parameters
sheetXlsxDocumentSheetThe sheet.
fontsFontEngineThe font engine the workbook's default font and the cells' fonts are resolved with.
diagnosticsIConversionDiagnosticsWhere a font that had to be substituted is reported, or null.
Returns
- SpreadsheetGeometry
The geometry.
Exceptions
- ArgumentNullException
sheetorfontsis null.- InvalidDocumentException
The sheet's part is malformed.