# AutoSizeDirection Enumeration

> Determines values for the AutoSize.AutoExpand and AutoSize.AutoShrink properties. The enumeration contains the following values:

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Enumeration
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.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 Server > Reference > TXTextControl > AutoSizeDirection Enumeration
- **482 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/autosizedirection/enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/autosizedirection/enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/autosizedirection/enumeration/llms-full.txt

---

### Description

Determines values for the [AutoSize.AutoExpand](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/autosize/autoexpand-property/llms-full.txt) and [AutoSize.AutoShrink](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/autosize/autoshrink-property/llms-full.txt) properties. The enumeration contains the following values:

### Syntax

```csharp
public enum AutoSizeDirection
```

```vbnet
Public Enum AutoSizeDirection
```

### Members

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

### Examples

The following example selects the Vertical value from the Auto Size Direction enumeration and uses it as a documented workflow choice.

```csharp
AutoSizeDirection value = AutoSizeDirection.Vertical;
Console.WriteLine($"Using Auto Size Direction: {value}");
```

```vbnet
Dim value As AutoSizeDirection = AutoSizeDirection.Vertical
Console.WriteLine($"Using Auto Size Direction: {value}")
```

---

## Nearby

- **Previous:** [AutoSize.MinSize Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/autosize/minsize-property/llms-full.txt)
- **Next:** [BinaryStreamType Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/binarystreamtype/enumeration/llms-full.txt)
