## Add(int, int, int, int, string) {#add}

向指定单元格或单元格范围添加超链接。

```csharp
public int Add(int firstRow, int firstColumn, int totalRows, int totalColumns, string address)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| firstRow | Int32 | 超链接范围的第一行。 |
| firstColumn | Int32 | 超链接范围的第一列。 |
| totalRows | Int32 | 此超链接范围内的行数。 |
| totalColumns | Int32 | 此超链接范围的列数。 |
| address | String | 超链接的地址。 |

### 返回值

Hyperlink对象索引。

### 例子

```csharp
[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")

```

### 也可以看看

* class [GridHyperlinkCollection](../../gridhyperlinkcollection)
* 命名空间 [Aspose.Cells.GridWeb.Data](../../gridhyperlinkcollection)
* 部件 [Aspose.Cells.GridWeb](../../../)

---

## Add(string, int, int, string) {#add_1}

向指定单元格或单元格范围添加超链接。

```csharp
public int Add(string cellName, int totalRows, int totalColumns, string address)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| cellName | String | 单元格名称。 |
| totalRows | Int32 | 此超链接范围内的行数。 |
| totalColumns | Int32 | 此超链接范围的列数。 |
| address | String | 超链接的地址。 |

### 返回值

[`GridHyperlink`](../../gridhyperlink)对象索引。

### 也可以看看

* class [GridHyperlinkCollection](../../gridhyperlinkcollection)
* 命名空间 [Aspose.Cells.GridWeb.Data](../../gridhyperlinkcollection)
* 部件 [Aspose.Cells.GridWeb](../../../)

---

## Add(string, string) {#add_2}

向指定单元格添加超链接。

```csharp
public int Add(string cellName, string address)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| cellName | String | 单元格名称。 |
| address | String | 超链接的地址。 |

### 返回值

[`GridHyperlink`](../../gridhyperlink)对象索引。

### 也可以看看

* class [GridHyperlinkCollection](../../gridhyperlinkcollection)
* 命名空间 [Aspose.Cells.GridWeb.Data](../../gridhyperlinkcollection)
* 部件 [Aspose.Cells.GridWeb](../../../)

---

## Add(string, string, string, string, string) {#add_3}

向指定单元格或单元格范围添加超链接。

```csharp
public int Add(string startCellName, string endCellName, string address, string textToDisplay, 
    string screenTip)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| startCellName | String | 范围的左上角单元格。 |
| endCellName | String | 范围的右下角单元格。 |
| address | String | 超链接的地址。 |
| textToDisplay | String | 为指定的超链接显示的文本。 |
| screenTip | String | 指定超链接的屏幕提示文本。 |

### 返回值

[`GridHyperlink`](../../gridhyperlink)对象索引。

### 也可以看看

* class [GridHyperlinkCollection](../../gridhyperlinkcollection)
* 命名空间 [Aspose.Cells.GridWeb.Data](../../gridhyperlinkcollection)
* 部件 [Aspose.Cells.GridWeb](../../../)

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