TX Text Control .NET Server

TextControlSettings Class

Class|Introduced in 23.0
Namespace
TXTextControl.Web.MVC
Package
TXTextControl.Web from nuget.org, the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.Web.DocumentEditor.dll
Install
dotnet add package TXTextControl.Web

Description

The TextControlSettings class contains the TextControl extension settings. It is used as a parameter for the Web.MVC.ControlsFactory.TextControl method which creates new TextControl instances.

Syntax

public class TextControlSettings

Examples

The following example creates a Text Control Settings object and prepares it for a document workflow.

TXTextControl.Web.MVC.TextControlSettings textControlSettings = new();
textControlSettings.Width = "Quarterly report";

Members

Constructors

ConstructorDescription
TextControlSettingsNot described in the reference. public TextControlSettings();

Properties

PropertyDescription
APIRouteDetermines the API directory in the MVC project in which to find the WebSocket and print handlers. The default value is "api/".
BackColorSpecifies or returns the background color of the main text area and the ruler bars.
ContextMenusEnabledDetermines if a right click opens a context menu or not.
ControlCharsSpecifies if control characters are visible or not.
CultureGets or sets the control's culture. Affects date and time string formats, for example.
DatabaseFileDirectoryDetermines the directory path where database files are stored on the web server.
DockGets or sets a value how the control is docked to its container or web site.
DocumentFileDirectoryDetermines the directory path where document files are stored on the web server.
DocumentTargetMarkersSpecifies if markers for hypertext targets are shown in the editor or not.
EditModeSpecifies or returns a value of type Web.EditMode indicating whether the document's text is read-only, can be selected or is editable.
FormattingPrinterGets or sets the name of a printer the text dimensions and capabilities of which are used to format the document. If the document is printed with this printer the displayed and the printed document have the same dimensions. If the property is set to Standard, the system installed standard printer is used to format the document. If the property is set to Display, the font dimensions of the display device are used to format the document. If the specified printer is not installed, the standard printer is used.
HeightGets or sets the height of the control in the browser in percent, pixels or any other valid CSS length unit.
ImageFileDirectoryDetermines the directory path where image files are stored on the web server.
ReconnectTimeoutNot described in the reference. public double ReconnectTimeout { get; set; }
RenderModeNot described in the reference. public ComponentRenderMode RenderMode { get; set; }
SaveDocumentQuestionDialogEnabledDetermines if a confirmation dialog should be shown before discarding unsaved changes.
ServiceAddressGets or sets the IP address at which the websocket handler tries to connect to the Service. The default value is 127.0.0.1 (the local computer). Important: setting this property affects all instances of class TextControlSettings.
ServicePortGets or sets the Port at which the websocket handler tries to connect to the Service. Important: setting this property affects all instances of class TextControlSettings.
StaticFilesPathSpecifies or returns the path for static files. Is /TXTextControl.Web/ by default.
StatusBarColorSpecifies or returns the background color of the status bar.
TableGridLinesDetermines wether table grid lines are shown in the editor or not.
TextFieldsEditableGets or sets if text fields are editable or not.
TextFrameMarkerLinesSpecifies whether text frames that have no border line are shown with marker lines.
UICultureGets or sets the control's user interface culture. Affects the string resource language.
UserNamesGets or sets a list of names specifying users who have access to editable regions. When a document is set to read-only all editable regions that are related to these users can be edited.
WebSocketProtocolsNot described in the reference. public string[] WebSocketProtocols { get; set; }
WebSocketURLNot described in the reference. public string WebSocketURL { get; set; }
WidthGets or sets the width of the control in the browser in percent, pixels or any other valid CSS length unit.