TX Text Control .NET Server

Width Property

Property|Introduced in 23.0
Namespace
TXTextControl.Web.MVC
Package
TXTextControl.Web as TXTextControl.Web.DocumentEditor.dll from nuget.org, the private NuGet feed or Text Control Offline Packages

Description

Gets or sets the width of the control in the browser in percent, pixels or any other valid CSS length unit.

Syntax

public string Width { get; set; }

Examples

In the current ASP.NET Core integration, Width is configured through TextControlSettings. The following example sets it while creating the editor configuration.

textControlSettings.Width = "Quarterly report";
if (!string.IsNullOrWhiteSpace(textControlSettings.Width))
{
    Console.WriteLine($"Width: {textControlSettings.Width}");
}