Section

Overview

Section is a class in Aspose.Words FOSS for Python. Inherits from: BaseModel, NodeCastMixin.

Section objects provide as_body(), as_paragraph(), as_table(), etc., to cast a generic section node to a specific element type.

This class provides 8 methods for working with Section objects in Python programs. Available methods include: as_body, as_cell, as_paragraph, as_row, as_run, as_section, as_shape, as_table. All public members are accessible to any Python application after installing the Aspose.Words FOSS for Python package. Properties: body, headers_footers, page_setup, type.

Properties

NameTypeAccessDescription
typestrReadGets the type.
page_setupPageSetupReadGets the page setup.
bodyBodyReadGets the body.
headers_footerslist[HeaderFooter]ReadGets the headers footers.

Methods

SignatureDescription
as_body()Calls as_body on this Section instance.
as_cell()Calls as_cell on this Section instance.
as_paragraph()Calls as_paragraph on this Section instance.
as_row()Calls as_row on this Section instance.
as_run()Calls as_run on this Section instance.
as_section()Calls as_section on this Section instance.
as_shape()Calls as_shape on this Section instance.
as_table()Calls as_table on this Section instance.

See Also

 English