Add
Innehåll
[
Dölj
]Add(int, int, int, int, string)
Lägger till en hyperlänk till en specificerad cell eller ett cellintervall.
public int Add(int firstRow, int firstColumn, int totalRows, int totalColumns, string address)
| Parameter | Typ | Beskrivning |
|---|---|---|
| firstRow | Int32 | Första raden i hyperlänksintervallet. |
| firstColumn | Int32 | Första kolumnen i hyperlänksintervallet. |
| totalRows | Int32 | Antal rader i detta hyperlänksintervall. |
| totalColumns | Int32 | Antal kolumner i detta hyperlänksintervall. |
| address | String | Adress till hyperlänken. |
Returvärde
Hyperlink objektindex.
Exempel
[C#]
Worksheet worksheet = excel.Worksheets[0];
worksheet.Hyperlinks.Add("A4", 1, 1, "http://www.aspose.com");
worksheet.Hyperlinks.Add("A5", 1, 1, "c:\\book1.xls");
[Visual Basic]
Dim worksheet as Worksheet = excel.Worksheets(0)
worksheet.Hyperlinks.Add("A4", 1, 1, "http://www.aspose.com")
worksheet.Hyperlinks.Add("A5", 1, 1, "c:\\book1.xls")
Se även
- class GridHyperlinkCollection
- namnutrymme Aspose.Cells.GridWeb.Data
- hopsättning Aspose.Cells.GridWeb
Add(string, int, int, string)
Lägger till en hyperlänk till en specificerad cell eller ett cellintervall.
public int Add(string cellName, int totalRows, int totalColumns, string address)
| Parameter | Typ | Beskrivning |
|---|---|---|
| cellName | String | Cellnamn. |
| totalRows | Int32 | Antal rader i detta hyperlänksintervall. |
| totalColumns | Int32 | Antal kolumner i detta hyperlänksintervall. |
| address | String | Adress till hyperlänken. |
Returvärde
GridHyperlink objektindex.
Se även
- class GridHyperlinkCollection
- namnutrymme Aspose.Cells.GridWeb.Data
- hopsättning Aspose.Cells.GridWeb
Add(string, string)
Lägger till en hyperlänk till en specificerad cell .
public int Add(string cellName, string address)
| Parameter | Typ | Beskrivning |
|---|---|---|
| cellName | String | Cellnamn. |
| address | String | Adress till hyperlänken. |
Returvärde
GridHyperlink objektindex.
Se även
- class GridHyperlinkCollection
- namnutrymme Aspose.Cells.GridWeb.Data
- hopsättning Aspose.Cells.GridWeb
Add(string, string, string, string, string)
Lägger till en hyperlänk till en specificerad cell eller ett cellintervall.
public int Add(string startCellName, string endCellName, string address, string textToDisplay,
string screenTip)
| Parameter | Typ | Beskrivning |
|---|---|---|
| startCellName | String | Den övre vänstra cellen i intervallet. |
| endCellName | String | Den nedre högra cellen i intervallet. |
| address | String | Adress till hyperlänken. |
| textToDisplay | String | Texten som ska visas för den angivna hyperlänken. |
| screenTip | String | Skärmtipstexten för den angivna hyperlänken. |
Returvärde
GridHyperlink objektindex.
Se även
- class GridHyperlinkCollection
- namnutrymme Aspose.Cells.GridWeb.Data
- hopsättning Aspose.Cells.GridWeb