Method Remove
- Namespace
- DocWright.Spreadsheet
- Assembly
- DocWright.Spreadsheet.dll
Remove(string, XlsxDocumentSheet?)
Removes the name of a scope, as Excel's Name Manager deletes it. Formulas that use it are left as they are (Excel shows them as #NAME?) and reported (DXP1005).
public bool Remove(string name, XlsxDocumentSheet? scope = null)
Parameters
namestringThe name, found as Find(string, XlsxDocumentSheet?) finds it.
scopeXlsxDocumentSheetThe sheet it belongs to; null for a name of the workbook.
Returns
- bool
Whether the scope had the name.
Exceptions
- ArgumentNullException
nameis null.- InvalidDocumentException
A part of the workbook is malformed.