TX Text Control .NET for WPF

MinSize Property

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

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; }

Examples

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}");