Lines Constructor
- Namespace
TXTextControl.DocumentServer. PDF. Contents
- Package
TXTextControl.asTextControl. WPF. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline Packagesdll
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);Public Sub New(filename As String)| Parameter | Description |
|---|---|
| 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);Public Sub New(data As Byte())| Parameter | Description |
|---|---|
| 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.");Dim lines As New TXTextControl.DocumentServer.PDF.Contents.Lines("document.docx")
Console.WriteLine("Lines is ready for use.")