TX Text Control .NET for Windows Forms

ServerTextControl Constructor

Constructor|Introduced in 12.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Server.dll from the private NuGet feed or Text Control Offline Packages

Description

Initializes a new instance of the ServerTextControl class. After initialization the Create method must be called to enable further resources.

Syntax

public ServerTextControl();

Examples

The following example initializes a server-side text control, creates a document, and exports it to PDF.

using ServerTextControl textControl = new();
textControl.Create();
textControl.Text = "Quarterly results";
textControl.Save("quarterly-results.pdf", StreamType.AdobePDF);

Further Reading

  • Improved Documentation Tools for the Text Control MCP Server –
  • Convert DOCX to PDF, PDF/A and PDF/UA in C# Using TX Text Control –
  • Automatically Mapping TX Text Control Form Fields to JSON Data in .NET C# –
  • Creating Adobe PDF Forms in C# –