TX Text Control .NET Server

ServerTextControl Constructor

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

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);