Method AppendTab
AppendTab(Paragraph, CharacterFormat?)
Appends a tab to a paragraph.
public static TabChar AppendTab(this Paragraph paragraph, CharacterFormat? format = null)
Parameters
paragraphParagraphThe paragraph.
formatCharacterFormatThe direct run formatting, or null to specify none.
Returns
- TabChar
The appended tab.
Remarks
This is the tab element (w:tab), which advances to the next tab stop.
A U+0009 inside a run's text is not the same thing -- Word reads that as ordinary
whitespace -- so appending a tab through this method is the only way to author one that
survives a save into Word.
Exceptions
- ArgumentNullException
paragraphis null.