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


public class ControlsFactory
Public Class ControlsFactory

Introduced: X13.


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()


Method Description
TextControl Creates a TextControl.