CommentCollection.Add
Contents
[
Hide
]Add(int, int)
Adds a comment to the collection.
public int Add(int row, int column)
Parameter | Type | Description |
---|---|---|
row | Int32 | Cell row index. |
column | Int32 | Cell 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
- class CommentCollection
- namespace Aspose.Cells
- assembly Aspose.Cells
Add(string)
Adds a comment to the collection.
public int Add(string cellName)
Parameter | Type | Description |
---|---|---|
cellName | String | Cell 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
- class CommentCollection
- namespace Aspose.Cells
- assembly Aspose.Cells