Table of Contents

Class HeaderFooter

Namespace
MigraDoc.DocumentObjectModel
Assembly
MigraDoc.DocumentObjectModel.dll

Represents a header or footer object in a section.

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

Constructors

HeaderFooter()

Initializes a new instance of the HeaderFooter class.

Properties

Comment

Gets or sets a comment associated with this object.

Elements

Gets the collection of document objects that defines the header or footer.

Format

Gets or sets the paragraph format.

IsEvenPage

Returns true if this is an even page header or footer, false otherwise.

IsFirstPage

Returns true if this is a first page header or footer, false otherwise.

IsFooter

Returns true if this is a footer, false otherwise.

IsHeader

Returns true if this is a header, false otherwise.

IsPrimary

Returns true if this is a primary header or footer, false otherwise.

Style

Gets or sets the style name.

Values

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

Methods

Add(Paragraph)

Adds a new paragraph to the header or footer.

Add(Chart)

Adds a new chart to the header or footer.

Add(Image)

Adds a new image to the header or footer.

Add(TextFrame)

Adds a new text frame to the header or footer.

Add(Table)

Adds a new table to the header or footer.

AddBarcode()

Adds a new barcode to the header or footer.

AddChart()

Adds a new chart to the header or footer.

AddChart(ChartType)

Adds a new chart with the specified type to the header or footer.

AddImage(string)

Adds a new Image to the header or footer.

AddParagraph()

Adds a new paragraph to the header or footer.

AddParagraph(string)

Adds a new paragraph with the specified text to the header or footer.

AddTable()

Adds a new table to the header or footer.

AddTextFrame()

Adds a new text frame to the header or footer.

Clone()

Creates a deep copy of this object.

DeepCopy()

Implements the deep copy of the object.

IsNull()

Determines whether this instance is null (not set).