Add
Innehåll
[
Dölj
]Add(int, int)
Lägger till en kommentar till samlingen.
public int Add(int row, int column)
Parameter | Typ | Beskrivning |
---|---|---|
row | Int32 | Cellradsindex. |
column | Int32 | Cell 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
- class CommentCollection
- namnutrymme Aspose.Cells
- hopsättning Aspose.Cells
Add(string)
Lägger till en kommentar till samlingen.
public int Add(string cellName)
Parameter | Typ | Beskrivning |
---|---|---|
cellName | String | Cellnamn. |
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
- class CommentCollection
- namnutrymme Aspose.Cells
- hopsättning Aspose.Cells