TX Text Control .NET Server

Dock 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 a value how the control is docked to its container or web site.

Syntax

public DockStyle Dock { get; set; }

Examples

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

textControlSettings.Dock = TXTextControl.Web.DockStyle.Fill;
var configuredValue = textControlSettings.Dock;
Console.WriteLine($"Dock used by Text Control Settings: {configuredValue}");

See Also

Web.DockStyle Enumeration.