Add
Add(int, int)
向集合添加评论。
public int Add(int row, int column)
| 范围 | 类型 | 描述 |
|---|---|---|
| row | Int32 | 单元格行索引。 |
| column | Int32 | 单元格列索引。 |
返回值
Comment对象索引。
例子
[C#]
int commentIndex1 = comments.Add(0, 0);
Comment comment1 = comments[commentIndex1];
comment1.Note = "First note.";
comment1.Font.Name = "Times New Roman";
也可以看看
- class CommentCollection
- 命名空间 Aspose.Cells
- 部件 Aspose.Cells
Add(string)
向集合添加评论。
public int Add(string cellName)
| 范围 | 类型 | 描述 |
|---|---|---|
| cellName | String | 单元格名称。 |
返回值
Comment对象索引。
例子
[C#]
int commentIndex2 = comments.Add("B2");
Comment comment2 = comments[commentIndex2];
comment2.Note = "Second note.";
comment2.Font.Name = "Times New Roman";
也可以看看
- class CommentCollection
- 命名空间 Aspose.Cells
- 部件 Aspose.Cells