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
rangeXlsxCellRangeThe 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
commentXlsxCommentThe note, as read from this list.
Returns
- bool
Whether the cell had a note.
Exceptions
- ArgumentNullException
commentis null.- InvalidOperationException
The sheet is not a worksheet.
- InvalidDocumentException
A part of the workbook is malformed.