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

Syntax

public class ControlsFactory
Public Class ControlsFactory

Introduced: X14.

Examples

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;
}).Render()

Methods

Method Description
DocumentViewer Creates a DocumentViewer.