add metod

add(cell_name)

Lägger till en kommentar till samlingen.

Returnerar

Comment objektindex.

def add(self, cell_name):
    ...
ParameterTypBeskrivning
cell_namestrCell 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):
    ...
ParameterTypBeskrivning
rowintCell radindex.
columnintCell kolumnindex.

Exempel


commentIndex1 = comments.add(0, 0)
comment1 = comments[commentIndex1]
comment1.note = "First note."
comment1.font.name = "Times New Roman"

Se även