# StyleCurrent Property

> Returns or sets the formatting style by its unique name at the input position or of the selected text; returns an empty string for mixed styles.

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

---

Returns or sets the formatting style at the current input position or, if text is selected, changes all styles of the selected text to the specified style. If text is selected and formatted with several styles the property returns an empty string. A formatting style is given through its unique name.

### Syntax

```vbscript
TXTextControl.StyleCurrent [= StyleName]
```

### Data Types

String.

### Limitations

Run time only.

### See Also

- [Programming Category: Stylesheet Formatting](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/stylesheet-formatting/llms-full.txt)

---

## Nearby

- **Previous:** [StyleChanged Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/stylechanged-event/llms-full.txt)
- **Next:** [StyleDialog Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/styledialog-method/llms-full.txt)
