Add

Add(int, int)

Ajoute un commentaire à la collection.

public int Add(int row, int column)
ParamètreTaperLa description
rowInt32Index de ligne de cellule.
columnInt32Indice 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


Add(string)

Ajoute un commentaire à la collection.

public int Add(string cellName)
ParamètreTaperLa description
cellNameStringNom 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