Table of Contents

Class Section

Namespace
MigraDoc.DocumentObjectModel
Assembly
MigraDoc.DocumentObjectModel.dll

A Section is a collection of document objects sharing the same header, footer, and page setup.

public class Section : DocumentObject
Inheritance
object
Section
Inherited Members
Extension Methods

Constructors

Section()

Initializes a new instance of the Section class.

Properties

Comment

Gets or sets a comment associated with this object.

Elements

Gets the document elements that build the section’s content.

Footers

Gets the HeadersFooters collection containing the footers.

Headers

Gets the HeadersFooters collection containing the headers.

LastParagraph

Gets the last paragraph of this section, or null if no paragraph exists in this section.

LastTable

Gets the last table of this section, or null if no table exists in this section.

PageSetup

Gets the PageSetup object.

Values

Gets the underlying internal nullable values for the properties of this document object.

Methods

Add(Paragraph)

Adds a new paragraph to the section.

Add(Chart)

Adds a new chart to the section.

Add(Image)

Adds a new image to the section.

Add(TextFrame)

Adds a new text frame to the section.

Add(Table)

Adds a new table to the section.

AddBarcode()

Adds a new barcode to the section.

AddChart()

Adds a new chart to the section.

AddChart(ChartType)

Adds a new chart with the specified type to the section.

AddImage(string)

Adds a new Image to the section.

AddPageBreak()

Adds a manual page break.

AddParagraph()

Adds a new paragraph to the section.

AddParagraph(string)

Adds a new paragraph with the specified text to the section.

AddParagraph(string, string)

Adds a new paragraph with the specified text and style to the section.

AddTable()

Adds a new table to the section.

AddTextFrame()

Adds a new text frame to the section.

Clone()

Creates a deep copy of this object.

DeepCopy()

Implements the deep copy of the object.

PreviousSection()

Gets the previous section, or null if no such section exists.