Body module
- class Body.Body
Bases:
DocumentContainer,IBody,ICompositeObjectRepresents the body of a document.
- AddParagraph() Paragraph
Adds a paragraph at the end of the section. :return: The added paragraph.
- AddTable
Adds a table. :return: The added table.
- property ChildObjects: DocumentObjectCollection
Gets the child objects. :return: The child objects.
- property DocumentObjectType: DocumentObjectType
Gets the type of the document object. :return: The type of the document object.
- EnsureMinimum()
If the text body has no paragraphs, creates and appends one paragraph.
- property FirstParagraph: IParagraph
Gets the first paragraph. :return: The first paragraph.
- property FormFields: FormFieldCollection
Gets the form fields. :return: The form fields.
- InsertXHTML
Inserts HTML at the end of the text body. :param html: The HTML to insert.
- IsValidXHTML
Validates the XHTML. :param html: The HTML to validate. :param type: The validation type. :return: True if the XHTML is valid, False otherwise.
- property LastParagraph: IParagraph
Gets the last paragraph. :return: The last paragraph.
- property Paragraphs: ParagraphCollection
Gets the inner paragraphs. :return: The inner paragraphs.
- property Tables: TableCollection
Gets the inner tables. :return: The inner tables.
