paper-docxAPI referencesection
Sections
paper-docx 0.2.0 API reference
Sequence of Section objects corresponding to the sections in the document.
Supports len(), iteration, and indexed access.
Sections(document_elm: CT_Document, document_part: DocumentPart)Functions
__getitem__
func__getitem__(key: int | slice) -> Section | List[Section]paramkeyint | sliceReturns
docx.section.Section | typing.List[docx.section.Section]__iter__
func__iter__() -> Iterator[Section]Returns
typing.Iterator[docx.section.Section]__len__
func__len__() -> intReturns
int