html_note 属性

html_note 属性

获取和设置包含评论中的数据和一些格式的html字符串。

评论

如果这是一个线程注释,则不能更改注释,否则 MS Excel 无法将其作为线程注释处理。

例子


comment1.html_note = "<Font Style='FONT-FAMILY: Calibri;FONT-SIZE: 11pt;COLOR: #0000ff;TEXT-ALIGN: left;'>This is a <b>test</b>.</Font>"

定义:

@property
def html_note(self):
    ...
@html_note.setter
def html_note(self, value):
    ...

也可以看看