Table of Contents

Method Remove

Namespace
DocWright.Spreadsheet
Assembly
DocWright.Spreadsheet.dll

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

range XlsxCellRange

The range.

Returns

int

How many links were removed.

Exceptions

InvalidOperationException

The sheet is not a worksheet.

InvalidDocumentException

A part of the workbook is malformed.

Removes one link: the first the sheet lists over the same range.

public bool Remove(XlsxHyperlink hyperlink)

Parameters

hyperlink XlsxHyperlink

The link, as read from this list.

Returns

bool

Whether the sheet had a link over that range.

Exceptions

ArgumentNullException

hyperlink is null.

InvalidOperationException

The sheet is not a worksheet.

InvalidDocumentException

A part of the workbook is malformed.