Class
OdtHeaderFooter
OfficeIMO.OpenDocument
XML-backed header or footer content on an ODT master page.
Inheritance
- object
- OdtHeaderFooter
Usage
Explore 11 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 11
- Property OdtDocument.HeaderFooters
- Method OdtPageLayout.EnsureFirstFooter
- Method OdtPageLayout.EnsureFirstHeader
- Method OdtPageLayout.EnsureLeftFooter
- Method OdtPageLayout.EnsureLeftHeader
- Property OdtPageLayout.FirstFooter
- Property OdtPageLayout.FirstHeader
- Property OdtPageLayout.Footer
- Property OdtPageLayout.Header
- Property OdtPageLayout.LeftFooter
- Property OdtPageLayout.LeftHeader
Methods
public OdtParagraph AddHeading(string text, int level = 1) #Adds a heading with an outline level from 1 through 10.
Parameters
- text string
- level int = 1
Returns
OdtParagraphpublic OdtParagraph AddParagraph(string? text = null) #Adds a paragraph.
Parameters
- text string? = null
Returns
OdtParagraphInherited Methods
Properties
public string Kind { get; } #Native story kind, including distinct first and left variants.
public string? MasterPageName { get; } #Owning authored master page name when present.
public IReadOnlyList<OdtContentBlock> ContentBlocks { get; } #Supported ordered paragraph and table blocks in the existing story.
public bool IsDisplayed { get; set; } #Whether this header or footer is displayed by the master page.
public IReadOnlyList<OdtParagraph> Paragraphs { get; } #Paragraphs in this header or footer.
public int NonParagraphBlockCount { get; } #Direct content blocks outside the paragraph and heading surface.