# ServerTextControl.Select Method

> Selects text within 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.Select Method
- **469 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/servertextcontrol/select-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/servertextcontrol/select-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/servertextcontrol/select-method/llms-full.txt

---

### Description

Selects text within the control.

### Syntax

```csharp
public void Select(int start, int length);
```

```vbnet
Public Sub [Select](start As Integer, length As Integer)
```

### Parameters

| Parameter | Description |
|---|---|
| start | Specifies the selection's start position. |
| length | Specifies the number of selected characters. |

### Examples

The following example selects the report title and formats it as a heading.

```csharp
textControl.Text = "Quarterly report\nPrepared for Contoso Ltd.";
textControl.Select(0, "Quarterly report".Length);
textControl.Selection.Bold = true;
```

```vbnet
textControl.Text = "Quarterly report" & vbCrLf & "Prepared for Contoso Ltd."
textControl.Select(0, "Quarterly report".Length)
textControl.Selection.Bold = True
```

---

## Nearby

- **Previous:** [ServerTextControl.Sections Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/servertextcontrol/sections-property/llms-full.txt)
- **Next:** [ServerTextControl.SelectAll Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/servertextcontrol/selectall-method/llms-full.txt)
