# FontSize Property

> Returns or sets the font size in points of the selected or complete TXTextControl text, depending on FormatSelection; 0 means the selection mixes sizes.

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

---

Returns or sets a value that specifies the size of the font used to display text. This value is in points. At design time this property changes or gets the font size of the complete text. At runtime this property determines the font size of the selected text when the [FormatSelection](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/formatselection-property/llms-full.txt) property has been set to True. When the [FormatSelection](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/formatselection-property/llms-full.txt) property has been set to False the font size of the complete text is set or returned.

### Syntax

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

### Data Types

Integer.

### Remarks

The property returns 0 if the selected text contains fonts with different sizes. This can happen only at runtime and when the [FormatSelection](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/formatselection-property/llms-full.txt) property has been set to True.

### See Also

- [FontDialog Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontdialog-method/llms-full.txt)
- [FormatSelection Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/formatselection-property/llms-full.txt)
- [Programming Category: Character Formatting](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/character-formatting/llms-full.txt)

---

## Nearby

- **Previous:** [FontSettings Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontsettings-property/llms-full.txt)
- **Next:** [FontStrikethru Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontstrikethru-property/llms-full.txt)
