Table of Contents

Method Resize

Namespace
DocWright.Spreadsheet
Assembly
DocWright.Spreadsheet.dll

Resize(XlsxCellRange)

Gives the table a new range, as Excel's Resize Table does: the header row stays where it is, at least one row of data remains, no other table is covered; columns added at the right are named from their header cells.

public void Resize(XlsxCellRange range)

Parameters

range XlsxCellRange

The new range.

Exceptions

ArgumentException

The range moves the header row, leaves no data row, or drops columns (not done yet).

InvalidOperationException

The range covers another table, the table has a totals row (not done yet), or the table is no longer on the sheet.