Class OdfPageHeaderFooter
Represents a header or footer region in a master page style, supporting mixed plain text and field content. 表示主頁面樣式中的一個頁首或頁尾區域,支援純文字與欄位混排。
public sealed class OdfPageHeaderFooter
- Inheritance
-
OdfPageHeaderFooter
- Inherited Members
Properties
Text
Gets or sets the plain text content of this region; setting it replaces existing child nodes. 取得或設定此區域的純文字內容;設定時會取代既有子節點。
public string? Text { get; set; }
Property Value
Methods
AddDateField()
Adds a date field at the end of the paragraph. 在段落尾端新增日期欄位。
public void AddDateField()
AddPageCountField()
Adds a page count field at the end of the paragraph. 在段落尾端新增總頁數欄位。
public void AddPageCountField()
AddPageNumberField()
Adds a page number field at the end of the paragraph. 在段落尾端新增頁碼欄位。
public void AddPageNumberField()
Clear()
Clears all content of this region. 清除此區域的所有內容。
public void Clear()
GetOrCreateParagraph()
Gets or creates the paragraph node of this region, for advanced mixed-content editing. 取得或建立此區域的段落節點,供進階混排編輯。
public OdfParagraph GetOrCreateParagraph()
Returns
- OdfParagraph
The paragraph object to which fields or text can be appended. / 可追加欄位或文字的段落物件。