Add
Contenuti
[
Nascondere
]Add(int, int)
Aggiunge un commento alla raccolta.
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 indice oggetto.
Esempi
[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
- spazio dei nomi Aspose.Cells
- assemblea Aspose.Cells
Add(string)
Aggiunge un commento alla raccolta.
public int Add(string cellName)
| Parametro | Tipo | Descrizione |
|---|---|---|
| cellName | String | Nome della cella. |
Valore di ritorno
Comment indice oggetto.
Esempi
[C#]
int commentIndex2 = comments.Add("B2");
Comment comment2 = comments[commentIndex2];
comment2.Note = "Second note.";
comment2.Font.Name = "Times New Roman";
Guarda anche
- class CommentCollection
- spazio dei nomi Aspose.Cells
- assemblea Aspose.Cells