# AutoSize.MinSize Property

> 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.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 11.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > AutoSize.MinSize Property
- **365 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/autosize/minsize-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/autosize/minsize-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/autosize/minsize-property/llms-full.txt

---

### 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

```csharp
public Size MinSize { get; set; }
```

```vbnet
Public Property MinSize As Size
```

### 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.

```csharp
autoSize.MinSize = new System.Drawing.Size(600, 400);
Console.WriteLine($"Min Size used by Auto Size: {autoSize.MinSize}");
```

```vbnet
autoSize.MinSize = New System.Drawing.Size(600, 400)
Console.WriteLine($"Min Size used by Auto Size: {autoSize.MinSize}")
```

---

## Nearby

- **Previous:** [AutoSize.MaxSize Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/autosize/maxsize-property/llms-full.txt)
- **Next:** [AutoSizeDirection Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/autosizedirection/enumeration/llms-full.txt)
