## HyperlinkCollection class

Kapslar in en samling av[`Hyperlink`](../hyperlink) objekt.

```csharp
public class HyperlinkCollection : CollectionBase<Hyperlink>
```

## Egenskaper

| namn | Beskrivning |
| --- | --- |
| [Capacity](../../aspose.cells/collectionbase`1/capacity) { get; set; } |  |
| [Count](../../aspose.cells/collectionbase`1/count) { get; } |  |
| [Item](../../aspose.cells/hyperlinkcollection/item) { get; } | Får[`Hyperlink`](../hyperlink) element vid angivet index. |
| [Item](../../aspose.cells/collectionbase`1/item) { get; set; } |  |

## Metoder

| namn | Beskrivning |
| --- | --- |
| [Add](../../aspose.cells/hyperlinkcollection/add#add_1)(string, int, int, string) | Lägger till en hyperlänk till en specificerad cell eller ett cellintervall. |
| [Add](../../aspose.cells/hyperlinkcollection/add#add)(int, int, int, int, string) | Lägger till en hyperlänk till en specificerad cell eller ett cellintervall. |
| [Add](../../aspose.cells/hyperlinkcollection/add#add_2)(string, string, string, string, string) | Lägger till en hyperlänk till en specificerad cell eller ett cellintervall. |
| [BinarySearch](../../aspose.cells/collectionbase`1/binarysearch)(Hyperlink) |  |
| [BinarySearch](../../aspose.cells/collectionbase`1/binarysearch)(Hyperlink, IComparer&lt;Hyperlink&gt;) |  |
| [BinarySearch](../../aspose.cells/collectionbase`1/binarysearch)(int, int, Hyperlink, IComparer&lt;Hyperlink&gt;) |  |
| [Clear](../../aspose.cells/hyperlinkcollection/clear#clear)() | Rensar alla hyperlänkar. (2 methods) |
| [Contains](../../aspose.cells/collectionbase`1/contains)(Hyperlink) |  |
| [CopyTo](../../aspose.cells/collectionbase`1/copyto)(Hyperlink[]) |  |
| [CopyTo](../../aspose.cells/collectionbase`1/copyto)(Hyperlink[], int) |  |
| [CopyTo](../../aspose.cells/collectionbase`1/copyto)(int, Hyperlink[], int, int) |  |
| [Exists](../../aspose.cells/collectionbase`1/exists)(Predicate&lt;Hyperlink&gt;) |  |
| [Find](../../aspose.cells/collectionbase`1/find)(Predicate&lt;Hyperlink&gt;) |  |
| [FindAll](../../aspose.cells/collectionbase`1/findall)(Predicate&lt;Hyperlink&gt;) |  |
| [FindIndex](../../aspose.cells/collectionbase`1/findindex)(Predicate&lt;Hyperlink&gt;) |  |
| [FindIndex](../../aspose.cells/collectionbase`1/findindex)(int, Predicate&lt;Hyperlink&gt;) |  |
| [FindIndex](../../aspose.cells/collectionbase`1/findindex)(int, int, Predicate&lt;Hyperlink&gt;) |  |
| [FindLast](../../aspose.cells/collectionbase`1/findlast)(Predicate&lt;Hyperlink&gt;) |  |
| [FindLastIndex](../../aspose.cells/collectionbase`1/findlastindex)(Predicate&lt;Hyperlink&gt;) |  |
| [FindLastIndex](../../aspose.cells/collectionbase`1/findlastindex)(int, Predicate&lt;Hyperlink&gt;) |  |
| [FindLastIndex](../../aspose.cells/collectionbase`1/findlastindex)(int, int, Predicate&lt;Hyperlink&gt;) |  |
| [GetEnumerator](../../aspose.cells/collectionbase`1/getenumerator)() |  |
| [IndexOf](../../aspose.cells/collectionbase`1/indexof)(Hyperlink) |  |
| [IndexOf](../../aspose.cells/collectionbase`1/indexof)(Hyperlink, int) |  |
| [IndexOf](../../aspose.cells/collectionbase`1/indexof)(Hyperlink, int, int) |  |
| [LastIndexOf](../../aspose.cells/collectionbase`1/lastindexof)(Hyperlink) |  |
| [LastIndexOf](../../aspose.cells/collectionbase`1/lastindexof)(Hyperlink, int) |  |
| [LastIndexOf](../../aspose.cells/collectionbase`1/lastindexof)(Hyperlink, int, int) |  |
| [RemoveAt](../../aspose.cells/hyperlinkcollection/removeat#removeat)(int) | Ta bort hyperlänken vid det angivna indexet. (2 methods) |

### Exempel

```csharp


[C#]

//Instantiering av ett arbetsboksobjekt
Workbook workbook = new Workbook();

//Hämta referensen till det nyligen tillagda kalkylbladet genom att skicka dess arkindex
Worksheet worksheet = workbook.Worksheets[0];

//Hämta hyperlänksamling
HyperlinkCollection hyperlinks = worksheet.Hyperlinks;

//Lägga till en hyperlänk till en URL i "A1"-cellen
hyperlinks.Add("A1", 1, 1, "http://www.aspose.com");

//Spara Excel-filen
workbook.Save("book1.xls");

[VB.NET]

'Instantiera ett arbetsboksobjekt
Dim workbook As Workbook = New Workbook()

'Få referensen till det nyligen tillagda kalkylbladet genom att skicka dess arkindex
Dim worksheet As Worksheet = workbook.Worksheets(0)

'Skaffa hyperlänksamling
Dim hyperlinks As HyperlinkCollection = worksheet.Hyperlinks

'Adding a hyperlink to a URL at "A1" cell
hyperlinks.Add("A1", 1, 1, "http://www.aspose.com")

'Sparar Excel-filen
workbook.Save("book1.xls")
```

### Se även

* class [CollectionBase&lt;T&gt;](../collectionbase-1)
* class [Hyperlink](../hyperlink)
* namnutrymme [Aspose.Cells](../../aspose.cells)
* hopsättning [Aspose.Cells](../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Cells.dll -->
