MaxSize Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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; }Public Property MaxSize As SizeExamples
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}");autoSize.MaxSize = New System.Drawing.Size(600, 400)
Console.WriteLine($"Max Size used by Auto Size: {autoSize.MaxSize}")