# SelLength Property

> Sets or returns the number of selected characters in TXTextControl, from 0 to the text length; a larger value extends the selection to the end of the document.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > SelLength Property
- **148 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sellength-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sellength-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sellength-property/llms-full.txt

---

Returns or sets the number of characters selected.

### Syntax

```vbscript
TXTextControl.SelLength [= value]
```

### Data Types

Long.

### Limitations

Run time only.

### Remarks

The valid range of settings is 0 to text length, the total number of characters a Text Control contains. Setting this property's value to a value larger than the current text size, extends the selection up to the document's end.

### See Also

- [SelStart Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/selstart-property/llms-full.txt)
- [SelText Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/seltext-property/llms-full.txt)
- [Programming Category: Text Selections and Character Input](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/selections/llms-full.txt)

---

## Nearby

- **Previous:** [SelectObjects Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/selectobjects-property/llms-full.txt)
- **Next:** [SelStart Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/selstart-property/llms-full.txt)
