Table of Contents

Method Remove

Namespace
DocWright.Spreadsheet
Assembly
DocWright.Spreadsheet.dll

Remove(XlsxCellRange)

Removes the notes of a range, as Excel's Delete Note does over a selection: every note on a cell in the range. Threaded comments stay.

public int Remove(XlsxCellRange range)

Parameters

range XlsxCellRange

The range.

Returns

int

How many notes were removed.

Exceptions

InvalidOperationException

The sheet is not a worksheet.

InvalidDocumentException

A part of the workbook is malformed.

Remove(XlsxComment)

Removes one note.

public bool Remove(XlsxComment comment)

Parameters

comment XlsxComment

The note, as read from this list.

Returns

bool

Whether the cell had a note.

Exceptions

ArgumentNullException

comment is null.

InvalidOperationException

The sheet is not a worksheet.

InvalidDocumentException

A part of the workbook is malformed.