TX Text Control .NET Server

TextControl Constructor

Constructor|Introduced in 23.0
Namespace
TXTextControl.Web.MVC
Package
TXTextControl.Web as TXTextControl.Web.DocumentEditor.dll from nuget.org, the private NuGet feed or Text Control Offline Packages

Description

Initializes a new instance of the TextControl class.

Syntax

TextControl()

Initializes a new instance of the TextControl class.

public TextControl();

TextControl(TextControlSettings)

Initializes a new instance of the TextControl class using settings from a given TextControlSettings object.

public TextControl(TextControlSettings settings);
ParameterDescription
settings

A TextControlSettings object containing TextControl extension settings.

TextControl(Action<TextControlSettings>)

Initializes a new instance of the TextControl class using settings from a delegate method that accepts TextControlSettings as a parameter.

public TextControl(Action<TextControlSettings> method);
ParameterDescription
method

A delegate method that accepts TextControlSettings as a parameter.

Examples

The following example creates a Text Control instance and verifies that it is ready for the surrounding document workflow.

TXTextControl.Web.MVC.TextControl textControl = new();
Console.WriteLine("Text Control is ready.");