# CharacterSpacing Property

> Returns or sets the character spacing of the selected text in twips, negative to condense or positive to expand; returns -32767 for mixed spacing values.

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

---

Returns or sets a character spacing value, in twips, of the selected text. This value is added to each character. When it is negative, character spacing is reduced, otherwise it is extended.

Introduced: 30.0.

### Syntax

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

### Data Types

Integer.

### Remarks

The property returns -32767, if the selection contains characters with different spacing values.

### See Also

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

---

## Nearby

- **Previous:** [CharacterScaling Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/characterscaling-property/llms-full.txt)
- **Next:** [CharFormatChange Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/charformatchange-event/llms-full.txt)
