Class OdfParagraphPrebindingWriter
Writes batches of paragraphs into a pre-bound text body root node. 提供預先綁定至文字本文根節點的批次段落寫入器。
public sealed class OdfParagraphPrebindingWriter
- Inheritance
-
OdfParagraphPrebindingWriter
- Inherited Members
Remarks
此寫入器適合大量建立單純段落;它直接追加 text:p 節點,不建立
OdfParagraph facade,避免高頻段落輸出時產生額外 wrapper 物件。
Properties
Count
Gets the number of paragraphs appended through this writer. 取得已透過此寫入器追加的段落數量。
public int Count { get; }
Property Value
Methods
Add(string)
Appends a paragraph and returns the current writer, for chained calls. 追加一個段落並傳回目前寫入器,以便鏈式呼叫。
public OdfParagraphPrebindingWriter Add(string text)
Parameters
textstringThe paragraph text content. / 段落文字內容。
Returns
- OdfParagraphPrebindingWriter
The current writer. / 目前寫入器。