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


public class ControlsFactory
Public Class ControlsFactory

Introduced: X14.


The following example shows how to add a DocumentViewer to a view and how to load a physical document.

@Html.TXTextControl().DocumentViewer(settings => {
    settings.DocumentPath = Server.MapPath("~/App_Data/document.tx");
    settings.Dock = DocumentViewerSettings.DockStyle.Fill;
    settings.ToolbarDocked = true;


Method Description
DocumentViewer Creates a DocumentViewer.