Table of Contents

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

name string

The name, found as Find(string, XlsxDocumentSheet?) finds it.

scope XlsxDocumentSheet

The sheet it belongs to; null for a name of the workbook.

Returns

bool

Whether the scope had the name.

Exceptions

ArgumentNullException

name is null.

InvalidDocumentException

A part of the workbook is malformed.