TX Text Control .NET for Windows Forms

Lines Constructor

Constructor|Introduced in 29.0
Namespace
TXTextControl.DocumentServer.PDF.Contents
Package
TXTextControl.TextControl.WinForms.SDK as TXDocumentServer.dll from the private NuGet feed or Text Control Offline Packages

Description

Initializes a new DocumentServer.PDF.Contents.Lines class.

Syntax

Lines(string)

Initializes a new DocumentServer.PDF.Contents.Lines class from a given file.

public Lines(string filename);
ParameterDescription
filename

Specifies the PDF filename that is used to import the text lines.

Lines(byte[])

Initializes a new DocumentServer.PDF.Contents.Lines class from a given byte array.

public Lines(byte[] data);
ParameterDescription
data

Specifies data of a PDF document that is used to import the text lines.

Examples

The following example creates a Lines instance for a document-processing operation. The created object is then available to the surrounding document workflow.

TXTextControl.DocumentServer.PDF.Contents.Lines lines = new("document.docx");
Console.WriteLine("Lines is ready for use.");