Add

Add(int, int)

Lägger till en kommentar till samlingen.

public int Add(int row, int column)
ParameterTypBeskrivning
rowInt32Cellradsindex.
columnInt32Cell kolumn index.

Returvärde

Comment objektindex.

Exempel


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

Se även


Add(string)

Lägger till en kommentar till samlingen.

public int Add(string cellName)
ParameterTypBeskrivning
cellNameStringCellnamn.

Returvärde

Comment objektindex.

Exempel


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

Se även