TX Text Control .NET for WPF

ServerTextControl Constructor

Constructor|Introduced in 12.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.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);