TX Text Control .NET Server

MaxSize Property

Property|Introduced in 11.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

Gets or sets the maximum size, in pixels, for expanding the control. A control's width or hight cannot be larger than short.MaxValue.

Syntax

public Size MaxSize { get; set; }

Examples

The following example uses AutoSize.MaxSize to configure max size as part of the auto size workflow. The configured value is checked before the workflow continues.

autoSize.MaxSize = new System.Drawing.Size(600, 400);
Console.WriteLine($"Max Size used by Auto Size: {autoSize.MaxSize}");