Back to DOM
DocumentFooterClass
Definition
- Namespace
- DOM.Elements
- Assembly
- DOM.dll
Concrete implementation of a document footer part.
Remarks
inherits common header/footer behavior from and implements . It serves as the concrete container for footer content (paragraphs, images, shapes, tables, text, paths) and exposes layout properties such as borders and height constraints via the base class. DocumentFooter DocumentHeaderFooterPart IDocumentFooter Use this class to populate footer content for pages or sections. Layout and serialization logic should read properties defined on (for example,, and ) when rendering or exporting the footer. DocumentHeaderFooterPart Borders MinHeight MaxHeight FixedHeight
Examples
csharp
1// 1. Add a simple text footer
2var doc = new VDocs();
3doc.Footer.AddParagraph().AddText("Internal Use Only");
4
csharp
1// 2. Add a footer to a specific section
2var section = doc.AddSection();
3var footer = section.AddFooter(HeaderFooterType.Default);
4footer.AddParagraph().AddText("Page footer");
5
csharp
1// 3. Footer containing a table
2var footer = doc.AddFooter(HeaderFooterType.Default);
3var t = new Table(1, 2);
4t[0, 0].AddText("Internal Use");
5t[0, 1].AddText("v1.0");
6footer.AddTable(t);
7
csharp
1// 4. Footer with an image
2var footer = doc.AddFooter(HeaderFooterType.Default);
3footer.AddImage("logo_small.png").SetDimensions(40, 20, Units.pt);
4
No members discovered for this type.