Back to Devexpress

HyperlinkCollection.RemoveAt(Int32) Method

officefileapi-devexpress-dot-spreadsheet-dot-hyperlinkcollection-dot-removeat-x28-system-dot-int32-x29.md

latest2.5 KB
Original Source

HyperlinkCollection.RemoveAt(Int32) Method

Removes the hyperlink at the specified index from the collection.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
void RemoveAt(
    int index
)
vb
Sub RemoveAt(
    index As Integer
)

Parameters

NameTypeDescription
indexInt32

A zero-based integer specifying the index of the hyperlink to be removed. It should be non-negative and less than the number of elements in the collection.

|

Remarks

After a hyperlink is removed, its descriptive text (Hyperlink.DisplayText) is left in a cell and the formatting of this cell is cleared.

To remove the specified Hyperlink object from the collection, use the HyperlinkCollection.Remove method. To remove all hyperlinks from the collection, use the HyperlinkCollection.Clear method. To delete hyperlinks from the specified range of cells, use the Worksheet.ClearHyperlinks method.

To add a hyperlink into a cell or cell range, use the HyperlinkCollection.Add method (see the How to: Add a Hyperlink to a Cell example).

See Also

HyperlinkCollection Interface

HyperlinkCollection Members

DevExpress.Spreadsheet Namespace