TX Text Control .NET Server

TextControl Class

Class|Introduced in 23.0
Namespace
TXTextControl.Web.MVC
Package
TXTextControl.Web from nuget.org, the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.Web.DocumentEditor.dll
Install
dotnet add package TXTextControl.Web
Inherits
  1. ControlBase
  2. TextControl

Description

The TextControl class represents an extension object implementing the Text Control rich text editor functionality. To create an instance of this class and render an editor in an ASP.NET MVC application the ControlsFactory class is used. (See also ControlsFactory.TextControl method)

Syntax

public class TextControl : ControlBase

Examples

The following example creates a Text Control object and prepares it for a document workflow.

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

Members

Constructors

ConstructorDescription
TextControlInitializes a new instance of the TextControl class.

Methods

MethodDescription
LoadDataFromJsonUses data given as a JSON string as a data source. The JSON string has to contain an array of equally structured objects. Analyzes and uses the given objects as merge data in the same way as the method LoadDataFromModel.
LoadDataFromModelLoads a collection implementing interface System.Collections.IEnumerable as a data source.
LoadDataSetLoads a database which is used to create table and field name menu items in the mailings ribbon tab from an existing DataSet object.
LoadTextLoads text in a certain format. The complete contents of a TextControl are replaced.
LoadXMLDatabaseLoads an XML database which is used to create table and field name menu items in the mailings ribbon tab.
RenderRenders the extension's HTML code into the page output. (Inherited from ControlBase.)
SetFileDirectoryDetermines the directory path where the files of a specific file type are stored.

Further Reading

  • Modules of TX Text Control .NET Server Explained –