Method AppendText
AppendText(Paragraph, string, CharacterFormat?)
Appends a text run to a paragraph.
public static TextRun AppendText(this Paragraph paragraph, string text, CharacterFormat? format = null)
Parameters
paragraphParagraphThe paragraph.
textstringThe run text.
formatCharacterFormatThe direct run formatting, or null to specify none. The bag is cloned, so later changes to the caller's instance do not reach the document.
Returns
- TextRun
The appended run.
Exceptions
- ArgumentNullException
paragraphortextis null.