DOM.Abstracts.DocumentHeaderFooterPart
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
Gets or sets the rectangular border settings for this header/footer part.
Gets or sets a value indicating whether the header/footer should use a fixed height.
Gets or sets the maximum height of the header/footer region.
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.