Width Property
- Namespace
TXTextControl.Web. MVC
- Package
TXTextControl.asWeb TXTextControl.from nuget.org, the private NuGet feed or Text Control Offline PackagesWeb. DocumentEditor. dll
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; }Public Property Width As StringExamples
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}");
}textControlSettings.Width = "Quarterly report"
If Not String.IsNullOrWhiteSpace(textControlSettings.Width) Then
Console.WriteLine($"Width: {textControlSettings.Width}")
End If