CommentCollection.Add

Add(int, int)

Adds a comment to the collection.

public int Add(int row, int column)
ParameterTypeDescription
rowInt32Cell row index.
columnInt32Cell column index.

Return Value

Comment object index.

Examples


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

See Also


Add(string)

Adds a comment to the collection.

public int Add(string cellName)
ParameterTypeDescription
cellNameStringCell name.

Return Value

Comment object index.

Examples


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

See Also