TextContainer.Line Method

Adds text to the current paragraph and starts the new paragraph.

Namespace:  BitMiracle.Docotic.Pdf.Layout
Assembly:  BitMiracle.Docotic.Pdf.Layout (in BitMiracle.Docotic.Pdf.Layout.dll)

Syntax

C#
public TextSpan Line(
	string? text = null
)
VB
Public Function Line ( 
	Optional text As String = Nothing
) As TextSpan

Parameters

text (Optional)
Type: System.String
Optional text. null or empty values mean empty line.

Return Value

Type: TextSpan
The added text.

Remarks

This method completes the current paragraph. I.e., a next text chunk will be placed in the new paragraph.

The library places text to multiple paragraphs if text contains EOL characters (CRLF, LF, or CR).

See Also