HyperlinkCollection
Contenu
[
Cacher
]HyperlinkCollection class
Encapsule une collection deHyperlink objets.
public class HyperlinkCollection : CollectionBase<Hyperlink>
Propriétés
| Nom | La description |
|---|---|
| Capacity { get; set; } | |
| Count { get; } | |
| Item { get; } | Obtient leHyperlink élément à l’index spécifié. |
| Item { get; set; } |
Méthodes
| Nom | La description |
|---|---|
| Add(string, int, int, string) | Ajoute un lien hypertexte vers une cellule spécifiée ou une plage de cellules. |
| Add(int, int, int, int, string) | Ajoute un lien hypertexte vers une cellule spécifiée ou une plage de cellules. |
| Add(string, string, string, string, string) | Ajoute un lien hypertexte vers une cellule spécifiée ou une plage de cellules. |
| BinarySearch(Hyperlink) | |
| BinarySearch(Hyperlink, IComparer<Hyperlink>) | |
| BinarySearch(int, int, Hyperlink, IComparer<Hyperlink>) | |
| Clear() | Efface tous les hyperliens. (2 methods) |
| Contains(Hyperlink) | |
| CopyTo(Hyperlink[]) | |
| CopyTo(Hyperlink[], int) | |
| CopyTo(int, Hyperlink[], int, int) | |
| Exists(Predicate<Hyperlink>) | |
| Find(Predicate<Hyperlink>) | |
| FindAll(Predicate<Hyperlink>) | |
| FindIndex(Predicate<Hyperlink>) | |
| FindIndex(int, Predicate<Hyperlink>) | |
| FindIndex(int, int, Predicate<Hyperlink>) | |
| FindLast(Predicate<Hyperlink>) | |
| FindLastIndex(Predicate<Hyperlink>) | |
| FindLastIndex(int, Predicate<Hyperlink>) | |
| FindLastIndex(int, int, Predicate<Hyperlink>) | |
| GetEnumerator() | |
| IndexOf(Hyperlink) | |
| IndexOf(Hyperlink, int) | |
| IndexOf(Hyperlink, int, int) | |
| LastIndexOf(Hyperlink) | |
| LastIndexOf(Hyperlink, int) | |
| LastIndexOf(Hyperlink, int, int) | |
| RemoveAt(int) | Supprimer le lien hypertexte à l’index spécifié. (2 methods) |
Exemples
[C#]
//Instanciation d'un objet Workbook
Workbook workbook = new Workbook();
//Obtention de la référence de la feuille de calcul nouvellement ajoutée en passant son index de feuille
Worksheet worksheet = workbook.Worksheets[0];
//Obtenir la collection de liens hypertexte
HyperlinkCollection hyperlinks = worksheet.Hyperlinks;
//Ajout d'un lien hypertexte vers une URL dans la cellule "A1"
hyperlinks.Add("A1", 1, 1, "http://www.aspose.com");
//Enregistrement du fichier Excel
workbook.Save("book1.xls");
[VB.NET]
'Instanciation d'un objet Workbook
Dim workbook As Workbook = New Workbook()
'Obtenir la référence de la feuille de calcul nouvellement ajoutée en passant son index de feuille
Dim worksheet As Worksheet = workbook.Worksheets(0)
'Obtenir la collection de liens hypertexte
Dim hyperlinks As HyperlinkCollection = worksheet.Hyperlinks
'Adding a hyperlink to a URL at "A1" cell
hyperlinks.Add("A1", 1, 1, "http://www.aspose.com")
'Enregistrement du fichier Excel
workbook.Save("book1.xls")
Voir également
- class CollectionBase<T>
- class Hyperlink
- espace de noms Aspose.Cells
- Assemblée Aspose.Cells