Add
Contenu
[
Cacher
]Add(int, int)
Ajoute un commentaire à la collection.
public int Add(int row, int column)
Paramètre | Taper | La description |
---|---|---|
row | Int32 | Index de ligne de cellule. |
column | Int32 | Indice de colonne de cellule. |
Return_Value
Comment
indice d’objet.
Exemples
[C#]
int commentIndex1 = comments.Add(0, 0);
Comment comment1 = comments[commentIndex1];
comment1.Note = "First note.";
comment1.Font.Name = "Times New Roman";
Voir également
- class CommentCollection
- espace de noms Aspose.Cells
- Assemblée Aspose.Cells
Add(string)
Ajoute un commentaire à la collection.
public int Add(string cellName)
Paramètre | Taper | La description |
---|---|---|
cellName | String | Nom de la cellule. |
Return_Value
Comment
indice d’objet.
Exemples
[C#]
int commentIndex2 = comments.Add("B2");
Comment comment2 = comments[commentIndex2];
comment2.Note = "Second note.";
comment2.Font.Name = "Times New Roman";
Voir également
- class CommentCollection
- espace de noms Aspose.Cells
- Assemblée Aspose.Cells