Specifies whether or not a new paragraph is created before text is loaded. This property has only an effect, when a LoadSettings object is used with the Selection.Load method. By default a new paragraph is not created. When text is loaded into an existing paragraph the formatting attributes of the existing and the last loaded paragraph are merged. When this property is true, attributes are not merged and the newly created paragraph gets the attributes of the last loaded paragraph.

Introduced: X16.

Syntax

public bool AddParagraph { get; set; }
Public Property AddParagraph() As Boolean

Examples

The following example shows how to use the LoadSettings to specify whether or not a new paragraph is created before text is loaded.

TXTextControl.LoadSettings ls = new TXTextControl.LoadSettings();
ls.ApplicationFieldFormat = TXTextControl.ApplicationFieldFormat.MSWord;
string [] fields = new string[]{ "MERGEFIELD" };
ls.ApplicationFieldTypeNames = fields;
ls.AddParagraph = true;
Dim ls As TXTextControl.LoadSettings = New TXTextControl.LoadSettings()
ls.ApplicationFieldFormat = TXTextControl.ApplicationFieldFormat.MSWord
Dim fields As String() = New String() {"MERGEFIELD"}
ls.ApplicationFieldTypeNames = fields
ls.AddParagraph = True