Table of Contents

Method Remove

Namespace
DocWright.Spreadsheet
Assembly
DocWright.Spreadsheet.dll

Remove(bool)

Removes the table. keepCells true is Excel's Convert to Range: the cells keep their values and formats, and every structured reference to the table becomes the cells it named, qualified by the sheet (Orders[Qty] becomes Sheet1!$B$2:$B$9, [@Qty] in a row becomes Sheet1!$B2), as Excel writes them. False clears the cells too, and a reference to the table becomes #REF!.

public void Remove(bool keepCells = true)

Parameters

keepCells bool

Whether the cells stay (true) or are cleared.

Exceptions

InvalidOperationException

The table is no longer on the sheet.