Method Remove
- Namespace
- DocWright.Spreadsheet
- Assembly
- DocWright.Spreadsheet.dll
Remove(XlsxCellRange)
Removes the links of a range, as Excel's Remove Hyperlinks does: each link whose first cell is in the range, and, when the range is one cell, the link that covers it (measured). The cells keep their text and their format.
public int Remove(XlsxCellRange range)
Parameters
rangeXlsxCellRangeThe range.
Returns
- int
How many links were removed.
Exceptions
- InvalidOperationException
The sheet is not a worksheet.
- InvalidDocumentException
A part of the workbook is malformed.
Remove(XlsxHyperlink)
Removes one link: the first the sheet lists over the same range.
public bool Remove(XlsxHyperlink hyperlink)
Parameters
hyperlinkXlsxHyperlinkThe link, as read from this list.
Returns
- bool
Whether the sheet had a link over that range.
Exceptions
- ArgumentNullException
hyperlinkis null.- InvalidOperationException
The sheet is not a worksheet.
- InvalidDocumentException
A part of the workbook is malformed.