openpyxl.comments.comment工作表模块

class openpyxl.comments.comment_sheet.CommentRecord(ref='', authorId=0, guid=None, shapeId=0, text=None, commentPr=None, author=None, height=79, width=144)[源代码]

基类:openpyxl.descriptors.serialisable.Serialisable

author

值的类型必须小于class'str'>

authorId

值的类型必须小于class“int”>

commentPr

值的类型必须为<class'openpyxl.comments.comment_sheet.properties'>

property content

删除所有内嵌格式和内容

classmethod from_cell(cell)[源代码]

用于转换单元格注释的类方法

guid
ref

值的类型必须小于class'str'>

shapeId

值的类型必须小于class“int”>

tagname = 'comment'
text

值的类型必须小于class“openpyxl.cell.text.text”>

class openpyxl.comments.comment_sheet.CommentSheet(authors=None, commentList=None, extLst=None)[源代码]

基类:openpyxl.descriptors.serialisable.Serialisable

authors

值的类型必须小于class“openpyxl.comments.author.authorlist”>

commentList

在包含对象中包装序列

property comments

返回由coord键入的注释字典

extLst

值的类型必须为<class'openpyxl.descriptors.excel.extensionList'>

classmethod from_comments(comments)[源代码]

从特定工作表的注释列表中创建注释工作表

mime_type = 'application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml'
property path

在存档中返回路径

tagname = 'comments'
to_tree()[源代码]
write_shapes(vml=None)[源代码]

为评论创建VML

class openpyxl.comments.comment_sheet.Properties(locked=None, defaultSize=None, _print=None, disabled=None, uiObject=None, autoFill=None, autoLine=None, altText=None, textHAlign=None, textVAlign=None, lockText=None, justLastX=None, autoScale=None, rowHidden=None, colHidden=None, anchor=None)[源代码]

基类:openpyxl.descriptors.serialisable.Serialisable

altText

值的类型必须小于class'str'>

autoFill

值的类型必须小于class'bool'>

autoLine

值的类型必须小于class'bool'>

autoScale

值的类型必须小于class'bool'>

colHidden

值的类型必须小于class'bool'>

defaultSize

值的类型必须小于class'bool'>

disabled

值的类型必须小于class'bool'>

justLastX

值的类型必须小于class'bool'>

lockText

值的类型必须小于class'bool'>

locked

值的类型必须小于class'bool'>

rowHidden

值的类型必须小于class'bool'>

textHAlign

值必须是{‘右’、‘对齐’、‘居中’、‘左’、‘分布式’中的一个}

textVAlign

Value must be one of {'bottom', 'justify', 'center', 'top', 'distributed'}

uiObject

值的类型必须小于class'bool'>