# ServerTextControl.SelectAll Method

> Selects all text in the control.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 12.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Server.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.Server.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Server.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl > ServerTextControl.SelectAll Method
- **232 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/servertextcontrol/selectall-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/servertextcontrol/selectall-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/servertextcontrol/selectall-method/llms-full.txt

---

### Description

Selects all text in the control.

### Syntax

```csharp
public void SelectAll();
```

```vbnet
Public Sub SelectAll()
```

### Examples

The following example selects all document content. The created object is then available to the surrounding document workflow.

```csharp
textControl.SelectAll();
Console.WriteLine("Server Text Control is ready for use.");
```

```vbnet
textControl.SelectAll()
Console.WriteLine("Server Text Control is ready for use.")
```

---

## Nearby

- **Previous:** [ServerTextControl.Select Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/servertextcontrol/select-method/llms-full.txt)
- **Next:** [ServerTextControl.Selection Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/servertextcontrol/selection-property/llms-full.txt)
