SpreadsheetHyperlinkCollection Class
Collection of hyperlinks (SpreadsheetHyperlink).
public sealed class SpreadsheetHyperlinkCollection : IEnumerable<SpreadsheetHyperlink>, IEnumerable
Public NotInheritable Class SpreadsheetHyperlinkCollection
Implements IEnumerable(Of SpreadsheetHyperlink), IEnumerable
- Inheritance:
- System.ObjectSpreadsheetHyperlinkCollection
Implements
Remarks
You can set cell style to underline and font color to blue in order to appear as hyperlink, that is not done automatically.
Properties
Count
Gets the number of hyperlinks contained in the collection.
Property Value
- System.Int32
Item[Int32]
Gets the hyperlink at the specified index.
public SpreadsheetHyperlink this[int index] { get; }
Public ReadOnly Property Item(index As Integer) As SpreadsheetHyperlink
Parameters
index
- System.Int32
The zero-based index of the hyperlink.
Property Value
The hyperlink at the specified index.
Exceptions
- System.ArgumentOutOfRangeException
Argument index
is out of range.
Methods
Clear()
Removes all hyperlinks.
GetEnumerator()
Returns an enumerator for the collection.
public IEnumerator<SpreadsheetHyperlink> GetEnumerator()
Public Function GetEnumerator As IEnumerator(Of SpreadsheetHyperlink)
Returns
- System.Collections.Generic.IEnumerator<SpreadsheetHyperlink>
An enumerator for the collection.
Remove(SpreadsheetHyperlink)
Removes the first occurrence of a specific SpreadsheetHyperlink from the collection.
public bool Remove(SpreadsheetHyperlink item)
Public Function Remove(item As SpreadsheetHyperlink) As Boolean
Parameters
The SpreadsheetHyperlink to remove from the collection.
Returns
- System.Boolean
true if item
is successfully removed; otherwise, false. This method also returns false if item
was not found in the original collection.
RemoveAt(Int32)
Removes the hyperlink at the specified index.
Parameters
index
- System.Int32
The zero-based index of the hyperlink to remove.