# AutoText Property

> Determines whether a new XML element without text gets its name in square brackets as text; the Boolean AutoText property is True by default. Run time only.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Text Control ActiveX > API Reference > XMLElement > AutoText Property
- **125 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelement/autotext-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelement/autotext-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelement/autotext-property/llms-full.txt

---

Determines whether text is automatically created for a newly added XML element that has no text contents. The created text consists of the element's name enclosed in square brackets and is created only if no text has been set with the XML element's Text property. The value of this property is True by default.

### Syntax

```vbscript
XMLElement.AutoText [= boolean]
```

### Data Types

Boolean.

### Limitations

Run time only.

### See Also

- [Working with XML Files](https://docs.textcontrol.com/tx-text-control-activex/document-editor/xml/llms-full.txt)
- [Programming Category: XML Programming](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/xml/llms-full.txt)

---

## Nearby

- **Previous:** [AutoSelect Property](https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelement/autoselect-property/llms-full.txt)
- **Next:** [ChildItem Method](https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelement/childitem-method/llms-full.txt)
