Table of Contents

Method AppendTab

Namespace
DocWright.Dom.Editing
Assembly
DocWright.Dom.dll

AppendTab(Paragraph, CharacterFormat?)

Appends a tab to a paragraph.

public static TabChar AppendTab(this Paragraph paragraph, CharacterFormat? format = null)

Parameters

paragraph Paragraph

The paragraph.

format CharacterFormat

The 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

paragraph is null.