add метод
add(self, cell_name)
Добавляет комментарий в коллекцию.
Возврат
Индекс объекта Comment
.
def add(self, cell_name):
...
Параметр | Тип | Описание |
---|---|---|
cell_name | str | Cell имя. |
Пример
commentIndex2 = comments.add("B2")
comment2 = comments[commentIndex2]
comment2.note = "Second note."
comment2.font.name = "Times New Roman"
add(self, row, column)
Добавляет комментарий в коллекцию.
Возврат
Индекс объекта Comment
.
def add(self, row, column):
...
Параметр | Тип | Описание |
---|---|---|
row | int | Индекс строки Cell. |
column | int | Cell индекс столбца. |
Пример
commentIndex1 = comments.add(0, 0)
comment1 = comments[commentIndex1]
comment1.note = "First note."
comment1.font.name = "Times New Roman"
Смотрите также
- модуль
aspose.cells
- класс
Comment
- класс
CommentCollection