Class HyperlinkCollection
Represents a collection of hyperlinks.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Model
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public class HyperlinkCollection : CellRangeInsertedOrRemovedAwareCollection<SpreadsheetHyperlink>, IEnumerable<SpreadsheetHyperlink>, IEnumerable
Constructors
HyperlinkCollection(Worksheet)
Initializes a new instance of the Hyperlink
Declaration
public HyperlinkCollection(Worksheet worksheet)
Parameters
Worksheet
worksheet
The worksheet. |
Methods
Add(CellIndex, HyperlinkInfo)
Adds a new hyperlink to the collection.
Declaration
public SpreadsheetHyperlink Add(CellIndex cellIndex, HyperlinkInfo hyperlinkInfo)
Parameters
Cell Index of the cell. |
Hyperlink The hyperlink info. |
Returns
Spreadsheet The new hyperlink. |
Add(CellRange, HyperlinkInfo)
Adds a new hyperlink to the collection.
Declaration
public SpreadsheetHyperlink Add(CellRange cellRange, HyperlinkInfo hyperlinkInfo)
Parameters
Cell The cell range. |
Hyperlink The hyperlink info. |
Returns
Spreadsheet The new hyperlink. |
Add(CellRange, SpreadsheetHyperlink)
Adds the specified element when cellRange is inserted.
Declaration
protected override SpreadsheetHyperlink Add(CellRange cellRange, SpreadsheetHyperlink element)
Parameters
Cell The cell range. |
Spreadsheet The element. |
Returns
Overrides
Contains(SpreadsheetHyperlink)
Determines whether the collection contains the specified hyperlink.
Declaration
public bool Contains(SpreadsheetHyperlink hyperlink)
Parameters
Spreadsheet The hyperlink. |
Returns
System. A value indicating whether the collection contains the specified hyperlink. |
GetContainingHyperlinks(IEnumerable<CellRange>)
Gets the hyperlinks contained in the specified cell ranges.
Declaration
public IEnumerable<SpreadsheetHyperlink> GetContainingHyperlinks(IEnumerable<CellRange> cellRanges)
Parameters
System. The cell ranges. |
Returns
System. The collection of contained hyperlinks. |
GetContainingHyperlinks(CellRange)
Gets the hyperlinks contained in the specified cell range.
Declaration
public IEnumerable<SpreadsheetHyperlink> GetContainingHyperlinks(CellRange cellRange)
Parameters
Cell The cell range. |
Returns
System. The collection of contained hyperlinks. |
GetIntersectingHyperlinks(CellRange)
Gets the hyperlinks intersecting with the specified cell range.
Declaration
public IEnumerable<SpreadsheetHyperlink> GetIntersectingHyperlinks(CellRange cellRange)
Parameters
Cell The cell range. |
Returns
System. The collection of intersecting hyperlinks. |
OnChanged()
Called when the collection is changed.
Declaration
protected virtual void OnChanged()
Remove(CellRange)
Removes elements when cellRange is removed.
Declaration
protected override bool Remove(CellRange cellRange)
Parameters
Cell The cell range. |
Returns
System.
|
Overrides
Remove(SpreadsheetHyperlink)
Removes the specified hyperlink.
Declaration
public bool Remove(SpreadsheetHyperlink hyperlink)
Parameters
Spreadsheet The hyperlink. |
Returns
System. The value indicating whether the remove was successful. |
TryGetHyperlink(CellIndex, out SpreadsheetHyperlink)
Tries to get a hyperlink from the specified cell index.
Declaration
public bool TryGetHyperlink(CellIndex cellIndex, out SpreadsheetHyperlink hyperlink)
Parameters
Cell Index of the cell. |
Spreadsheet The hyperlink. |
Returns
System. The value indicating whether a hyperlink was found. |
TryGetHyperlink(CellRange, out SpreadsheetHyperlink)
Tries to get a hyperlink from the specified cell range.
Declaration
public bool TryGetHyperlink(CellRange cellRange, out SpreadsheetHyperlink hyperlink)
Parameters
Cell The cell range. |
Spreadsheet The hyperlink. |
Returns
System. The value indicating whether a hyperlink was found. |
TryGetHyperlinkExact(CellRange, out SpreadsheetHyperlink)
Tries to get the hyperlink from the specified cell range where the cell range has to match the hyperlink's cell range exactly.
Declaration
public bool TryGetHyperlinkExact(CellRange cellRange, out SpreadsheetHyperlink hyperlink)
Parameters
Cell The cell range. |
Spreadsheet The hyperlink. |
Returns
System. The value indicating whether a hyperlink was found. |
Events
Changed
Occurs when the collection is changed.
Declaration
public event EventHandler Changed
Event Type
System.
|