Table of Contents

Class Body

Namespace
FileFormat.Words
Assembly
FileFormat.Words.dll

Represents the body of a document, containing paragraphs, tables, images, and sections.

public class Body
Inheritance
Body
Inherited Members

Constructors

Body(Document)

Initializes a new instance of the Body class with the specified document.

public Body(Document doc)

Parameters

doc Document

The parent document containing the body.

Properties

Images

Gets the list of images in the body.

public List<Image> Images { get; }

Property Value

List<Image>

Paragraphs

Gets the list of paragraphs in the body.

public List<Paragraph> Paragraphs { get; }

Property Value

List<Paragraph>

Sections

Gets the list of sections in the body.

public List<Section> Sections { get; }

Property Value

List<Section>

Tables

Gets the list of tables in the body.

public List<Table> Tables { get; }

Property Value

List<Table>

Methods

AppendChild(IElement)

Appends a child element to the body.

public int AppendChild(IElement element)

Parameters

element IElement

The element to append to the body.

Returns

int

The unique identifier ElementId of the appended element.