Version

NewLineType Property

Returns or sets a value which determines the method used to represent a newline in the generated output.
Syntax
'Declaration
 
Public Property NewLineType As Infragistics.Documents.Word.NewLineType
public Infragistics.Documents.Word.NewLineType NewLineType {get; set;}
Remarks

The newline character(s) can be represented as either a line break or a carriage return. A document consumer may interpret a line break or carriage return differently depending on the circumstances under which it is used. For example, paragraph justification can behave differently in MS Word depending on whether a line break is contained within the paragraph. A carriage return is recognized in a standard paragraph as a line-breaking character, but is not recognized when the paragraph is contained within a table cell.

This property can be used to specify the method used to represent a newline for all text runs within the document. The AddNewLine method overload which takes a NewLineType parameter can be used to generate a newline character independently of the value of this property. The TextRun class also exposes a NewLineType property, so that the newline character can be specified on a per-TextRun basis.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also