VDocs.NET
Back to DOM

DOM.Abstracts.DocumentHeaderFooterPart

Namespace: DOM.Abstracts

Abstract base class for header and footer parts that can contain document elements. Inherits common element container behavior from and implements.

Header and footer parts provide a place to host flow content (paragraphs, images, shapes, etc.) and expose layout properties such as borders and height constraints. Concrete implementations should populate the children collection and respect the height and border settings when rendering or serializing header/footer content.

5 members

Properties

BordersIRectBorder

Gets or sets the rectangular border settings for this header/footer part.

FixedHeight

Gets or sets a value indicating whether the header/footer should use a fixed height.

MaxHeightDocumentUnit

Gets or sets the maximum height of the header/footer region.

MinHeightDocumentUnit

Gets or sets the minimum height of the header/footer region.

Methods

AddText

IText AddText(string text)

Adds a text node to the section by creating a new paragraph and appending the text to it.

This override ensures that free text added at the section level is wrapped in a paragraph to maintain consistent document structure.

Parameters

text
The string content to add to the section.

Returns

IText

The createdinstance representing the newly added text node.

VDocs.NET
The .NET Word Document Library

Generate Word
documents.
Not XML.

Create professional documents in .NET without the complexity of OpenXML or Word Interop.

C#VB.NET
var doc = new WordDocument();

doc.AddParagraph()
   .AddText("Invoice")
   .SetHeading(HeadingLevel.Title);

doc.Save("invoice.docx");

Sign In

Welcome back. Please sign in to your account.

Forgot password?
or
Create an account

By signing in, you agree to our Terms of Service and Privacy Policy.