paper-docxAPI referencestory
Block
paper-docx 0.2.0 API reference
One live, owner-bound paragraph or table observed during traversal.
Block(story: str, kind: str, index: int, anchor: Anchor, text: str, style_id: Optional[str], in_insert: bool, in_delete: bool, in_content_control: bool, in_text_box: bool, has_field: bool, table: Optional[TableShape], _document: 'Optional[Document]' = None, _element: 'Optional[_Element]' = None, _story_root: 'Optional[_Element]' = None, _parent: 'Optional[_Element]' = None, _container_elements: 'Tuple[_Element, ...]' = (), _view: str = 'current')Attributes
anchor
attributeanchorAnchorhas_field
attributehas_fieldboolin_content_control
attributein_content_controlboolin_delete
attributein_deleteboolin_insert
attributein_insertboolin_text_box
attributein_text_boxboolindex
attributeindexintkind
attributekindstrstory
attributestorystrstyle_id
attributestyle_idOptional[str]table
attributetableOptional[TableShape]text
attributetextstrFunctions
to_dict
functo_dict() -> 'Dict[str, object]'Returns
'Dict[str, object]'