# AutoSize.AutoShrink Property

> Gets or sets possible directions for shrinking the control.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 11.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.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 WPF > Reference > TXTextControl > AutoSize.AutoShrink Property
- **401 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/autosize/autoshrink-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/autosize/autoshrink-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/autosize/autoshrink-property/llms-full.txt

---

### Description

Gets or sets possible directions for shrinking the control.

### Syntax

```csharp
public AutoSizeDirection AutoShrink { get; set; }
```

```vbnet
Public Property AutoShrink As AutoSizeDirection
```

### Members

| Value | Description |
|---|---|
| None | The control does not shrink automatically. |
| Vertical | The control automatically shrinks vertically. |
| Horizontal | The control automatically shrinks horizontally. |
| Both | The control automatically shrinks in both directions. |

### Examples

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

```csharp
autoSize.AutoShrink = AutoSizeDirection.Vertical;
Console.WriteLine($"Auto Shrink used by Auto Size: {autoSize.AutoShrink}");
```

```vbnet
autoSize.AutoShrink = AutoSizeDirection.Vertical
Console.WriteLine($"Auto Shrink used by Auto Size: {autoSize.AutoShrink}")
```

---

## Nearby

- **Previous:** [AutoSize.AutoExpand Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/autosize/autoexpand-property/llms-full.txt)
- **Next:** [AutoSize Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/autosize/constructor/llms-full.txt)
