The ControlsFactory class contains helper methods to create TX Text Control extensions. For now only one extension is implemented (see class TextControl).

Syntax

public class ControlsFactory
Public Class ControlsFactory

Introduced: X13.

Examples

The following example shows how to add a TextControl editor to a view, specify its height and width, set a database file directory and open a document with it.

@using TXTextControl.Web.MVC
@using TXTextControl.Web

@Html.TXTextControl().TextControl(settings => {
   settings.Width = "100%";
   settings.Height = "600px";
   settings.DatabaseFileDirectory = Server.MapPath("~/App_Data/Databases");
}).LoadText(Server.MapPath("~/App_Data/Documents/Demo.rtf"), StreamType.RichTextFormat).Render()

Methods

Method Description
TextControl Creates a TextControl.