# RTFSelText Property

> Sets or returns the selected text as an RTF string with all formatting attributes, unlike SelText, which uses plain ANSI text; used with SelStart and SelLength.

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

---

This property works much like the standard [SelText](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/seltext-property/llms-full.txt) property. The [SelStart](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/selstart-property/llms-full.txt) and [SelLength](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sellength-property/llms-full.txt) properties can be used to specify a text selection which is to be copied to a string or inserted from a string. The difference between [SelText](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/seltext-property/llms-full.txt) and RTFSelText is that with the [SelText](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/seltext-property/llms-full.txt) property, text is stored without formatting information in the ANSI format, while RTFSelText uses Rich Text Format to preserve all of the formatting attributes.

### Syntax

```vbscript
TXTextControl.RTFSelText [= string]
```

### Data Types

String.

### Limitations

Run time only.

### Remarks

RTF (Rich Text Format) is one of the most common interchange formats for text documents. Most word processors available for Windows are able to read and write RTF files.

### See Also

- [PDF Export](https://docs.textcontrol.com/tx-text-control-activex/pdf/llms-full.txt)
- [Programming Category: Loading, Saving and Database Support](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/load-save/llms-full.txt)

---

## Nearby

- **Previous:** [RightToLeft Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/righttoleft-property/llms-full.txt)
- **Next:** [RulerHandle Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/rulerhandle-property/llms-full.txt)
