# Locale Property

> Sets or returns the language of the selected text as a Windows locale identifier (LCID); 0 means no language and &HFFFF a selection with mixed languages.

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

---

Specifies a language for the selected text.

Introduced: 20.0.

### Syntax

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

| Setting | Description |
|---|---|
| 0 | The language of the selected text is not specified. |
| &HFFFF | Get only. The property returns &HFFFF, if the selected text contains parts with different language settings. |
| otherwise | A Windows Locale identifier (LCID), identifying the language of the selected text. |

### Data Types

Long.

### Remarks

If the [FormatSelection](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/formatselection-property/llms-full.txt) property has previously been set to True, changing this property affects only the currently selected text. If [FormatSelection](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/formatselection-property/llms-full.txt) has been set to False, the setting applies to the entire control content.

### See Also

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

---

## Nearby

- **Previous:** [LoadSaveAttribute Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/loadsaveattribute-property/llms-full.txt)
- **Next:** [LocaleDialog Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/localedialog-method/llms-full.txt)
