Table of Contents

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

sheet XlsxDocumentSheet

The sheet.

fonts FontEngine

The font engine the workbook's default font and the cells' fonts are resolved with.

diagnostics IConversionDiagnostics

Where a font that had to be substituted is reported, or null.

Returns

SpreadsheetGeometry

The geometry.

Exceptions

ArgumentNullException

sheet or fonts is null.

InvalidDocumentException

The sheet's part is malformed.