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

向集合添加评论。

```csharp
public int Add(int row, int column)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| row | Int32 | 单元格行索引。 |
| column | Int32 | 单元格列索引。 |

### 返回值

Comment对象索引。

### 也可以看看

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

---

## Add(string) {#add_1}

向集合添加评论。

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

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| cellName | String | 单元格名称。 |

### 返回值

Comment对象索引。

### 也可以看看

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

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