add metod
add(cell_name)
Lägger till en kommentar till samlingen.
Returnerar
Comment objektindex.
def add(self, cell_name):
...
Parameter | Typ | Beskrivning |
---|---|---|
cell_name | str | Cell namn. |
Exempel
commentIndex2 = comments.add("B2")
comment2 = comments[commentIndex2]
comment2.note = "Second note."
comment2.font.name = "Times New Roman"
add(row, column)
Lägger till en kommentar till samlingen.
Returnerar
Comment objektindex.
def add(self, row, column):
...
Parameter | Typ | Beskrivning |
---|---|---|
row | int | Cell radindex. |
column | int | Cell kolumnindex. |
Exempel
commentIndex1 = comments.add(0, 0)
comment1 = comments[commentIndex1]
comment1.note = "First note."
comment1.font.name = "Times New Roman"
Se även
- modul aspose.cells
- klass Comment
- klass CommentCollection