MinSize Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets the minimum size, in pixels, for shrinking the control. A control's width or hight cannot be smaller than the region covered by one character, so that at least one character remains visible.
Syntax
public Size MinSize { get; set; }Public Property MinSize As SizeExamples
The following example uses AutoSize.MinSize to configure min size as part of the auto size workflow. The configured value is checked before the workflow continues.
autoSize.MinSize = new System.Drawing.Size(600, 400);
Console.WriteLine($"Min Size used by Auto Size: {autoSize.MinSize}");autoSize.MinSize = New System.Drawing.Size(600, 400)
Console.WriteLine($"Min Size used by Auto Size: {autoSize.MinSize}")