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

Aggiunge un commento alla raccolta.

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

| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| row | Int32 | Indice di riga di cella. |
| column | Int32 | Indice della colonna della cella. |

### Valore di ritorno

[`Comment`](../../comment) indice oggetto.

### Esempi

```csharp

[C#]
int commentIndex1 = comments.Add(0, 0);
Comment comment1 = comments[commentIndex1];
comment1.Note = "First note.";
comment1.Font.Name = "Times New Roman";
```

### Guarda anche

* class [CommentCollection](../../commentcollection)
* spazio dei nomi [Aspose.Cells](../../commentcollection)
* assemblea [Aspose.Cells](../../../)

---

## Add(string) {#add_1}

Aggiunge un commento alla raccolta.

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

| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| cellName | String | Nome della cella. |

### Valore di ritorno

[`Comment`](../../comment) indice oggetto.

### Esempi

```csharp

[C#]
int commentIndex2 = comments.Add("B2");
Comment comment2 = comments[commentIndex2];
comment2.Note = "Second note.";
comment2.Font.Name = "Times New Roman";
```

### Guarda anche

* class [CommentCollection](../../commentcollection)
* spazio dei nomi [Aspose.Cells](../../commentcollection)
* assemblea [Aspose.Cells](../../../)

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