Paper Office
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

attributeanchorAnchor

has_field

attributehas_fieldbool

in_content_control

attributein_content_controlbool

in_delete

attributein_deletebool

in_insert

attributein_insertbool

in_text_box

attributein_text_boxbool

index

attributeindexint

kind

attributekindstr

story

attributestorystr

style_id

attributestyle_idOptional[str]

table

attributetableOptional[TableShape]

text

attributetextstr

Functions

to_dict

functo_dict() -> 'Dict[str, object]'

Returns

'Dict[str, object]'

On this page