TextControl Class
- Namespace
TXTextControl.Web. MVC
- Package
TXTextControl.from nuget.org, the private NuGet feed or Text Control Offline PackagesWeb
- Assembly
TXTextControl.Web. DocumentEditor. dll
- Install
dotnet add package TXTextControl.Web
- Inherits
- Control
Base - Text
Control
- Control
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 : ControlBasePublic Class TextControl
Inherits ControlBaseExamples
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.");Dim textControl As New TXTextControl.Web.MVC.TextControl()
Console.WriteLine("Text Control is ready for the document workflow.")Members
Constructors
| Constructor | Description |
|---|---|
| TextControl | Initializes a new instance of the TextControl class. |
Methods
| Method | Description |
|---|---|
| LoadDataFromJson | Uses 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. |
| LoadDataFromModel | Loads a collection implementing interface System.Collections.IEnumerable as a data source. |
| LoadDataSet | Loads a database which is used to create table and field name menu items in the mailings ribbon tab from an existing DataSet object. |
| LoadText | Loads text in a certain format. The complete contents of a TextControl are replaced. |
| LoadXMLDatabase | Loads an XML database which is used to create table and field name menu items in the mailings ribbon tab. |
| Render | Renders the extension's HTML code into the page output. (Inherited from ControlBase.) |
| SetFileDirectory | Determines the directory path where the files of a specific file type are stored. |