The TextControl class implements a control with high-level text editing features. It is inherited from the System.Web.UI.WebControls.WebControl class. The following describes only the properties, methods and events defined through the TextControl class. For a list of properties, methods and events inherited from the System.Web.UI.WebControls.WebControl class see the .NET Framework reference.

Syntax

public class TextControl : WebControl
Public Class TextControl
  Inherits WebControl

Introduced: X11.

Constructors

Constructor Description
TextControl Initializes a new instance of the TextControl class.

Methods

Method Description
GetFileDirectory Returns the directory path where the files of a specific file type are stored.
GetFileDirectoryAsync Returns the directory path where the files of a specific file type are stored.
LoadDataFromJson Uses data given as a JSON string as a data source.
LoadDataFromJsonAsync Uses data given as a JSON string as a data source.
LoadDataFromModel Loads a collection implementing interface System.Collections.IEnumerable as a data source.
LoadDataFromModelAsync 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.
LoadDataSetAsync 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.
LoadTextAsync Loads text in a certain format.
LoadXMLDatabase Loads an XML database which is used to create table and field name menu items in the mailings ribbon tab.
LoadXMLDatabaseAsync Loads an XML database which is used to create table and field name menu items in the mailings ribbon tab.
ResetContents Deletes the entire contents of the control.
SaveText Saves the complete contents of a document with the specified format.
SetFileDirectory Determines the directory path where the files of a specific file type are stored.
SetFileDirectoryAsync Determines the directory path where the files of a specific file type are stored.

Properties

Property Description
BackColor Specifies or returns the background color of the main text area and the ruler bars.
ContextMenusEnabled Specifies or returns a value indicating if a right click opens a context menu or not.
ControlChars Specifies if control characters are visible or not.
Culture Gets or sets the control's culture.
Dock Gets or sets a value how the control is docked to its container or web site.
DocumentTargetMarkers Specifies or returns a value indicating if markers for hypertext targets are shown in the editor or not.
EditMode Specifies or returns a value of type Web.EditMode indicating whether the document's text is read-only, can be selected or is editable.
FormattingPrinter Gets or sets the name of a printer the text dimensions and capabilities of which are used to format the document.
IsReady Gets a value indicating whether all TX Text Control components are completely loaded in the service's worker process.
SaveDocumentQuestionDialogEnabled Specifies or returns a value indicating if a confirmation dialog should be shown before discarding unsaved changes.
Selection Gets or sets the current selection in the text part with the input focus.
ServiceAddress Gets or sets the IP address at which the websocket handler tries to connect to the Service.
ServicePort Gets or sets the Port at which the websocket handler tries to connect to the Service.
StatusBarColor Specifies or returns the background color of the status bar.
TableGridLines Specifies or returns a value indicating wether table grid lines are shown in the editor or not.
TextFieldsEditable Gets or sets if text fields are editable or not.
TextFrameMarkerLines Specifies whether text frames that have no border line are shown with marker lines.
TextParts Gets a collection of all text parts the current document contains.
UICulture Gets or sets the control's user interface culture.
UserNames Gets or sets a list of names specifying users who have access to editable regions.
WebSocketHandlerPath Specifies the path to the WebSocket handler (TXWebSocketHandler.ashx).

Further Reading

Learn more about the TXTextControl.Web.TextControl Class in the Text Control Blog: