# Character Formatting

> Set fonts, sizes, bold, italic, underline, colors, spacing and baseline of selected text in TXTextControl with FontName, FontSize and FontDialog.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control ActiveX > API Reference > Programming Categories > Character Formatting
- **1119 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/character-formatting/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/character-formatting/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/character-formatting/llms-full.txt

---

Font, size, style, color, spacing and baseline of characters are set through the members of `TXTextControl` listed below. Most of them work on the selected text.

The table also names the methods that grow or shrink the font and open the built-in font and symbol dialog boxes, and the event that reports a change of the character formatting.

![The built-in Font dialog box with font, size, attributes, position, underlining and text and background colors, opened in the TXWords sample, in the look of TX Text Control 10](https://docs.textcontrol.com/assets/img/tx-text-control-activex/font-dialog.9542989b.webp)

### Properties

| Member | Description |
|---|---|
| [`TXTextControl.AutoBaseLine`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/autobaseline-property/llms-full.txt) | Returns or sets values specifying whether the selected text is automatically sub- or superscripted. |
| [`TXTextControl.BaseLine`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/baseline-property/llms-full.txt) | Specifies the baseline alignment for selected text. |
| [`TXTextControl.Capitals`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/capitals-property/llms-full.txt) | Returns or sets values specifying whether lowercase letters are displayed with capital letters. |
| [`TXTextControl.CharacterScaling`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/characterscaling-property/llms-full.txt) | Returns or sets a character scaling, in percent of the average character width, of the selected text. |
| [`TXTextControl.CharacterSpacing`](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. |
| [`TXTextControl.FontBold`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontbold-property/llms-full.txt) | Returns or sets the bold font style. |
| [`TXTextControl.FontItalic`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontitalic-property/llms-full.txt) | Returns or sets the italic font style. |
| [`TXTextControl.FontName`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontname-property/llms-full.txt) | Returns or sets the font used to display text. |
| [`TXTextControl.FontSize`](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. |
| [`TXTextControl.FontStrikethru`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontstrikethru-property/llms-full.txt) | Returns or sets the strikethrough font style. |
| [`TXTextControl.FontUnderline`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontunderline-property/llms-full.txt) | Returns or sets the underline font style. |
| [`TXTextControl.FontUnderlineStyle`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontunderlinestyle-property/llms-full.txt) | This property determines styles for the [FontUnderline](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontunderline-property/llms-full.txt) property. |
| [`TXTextControl.ForeColor`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/forecolor-property/llms-full.txt) | Returns or sets the color used to display text in a `TXTextControl`. |
| [`TXTextControl.Locale`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/locale-property/llms-full.txt) | Specifies a language for the selected text. |
| [`TXTextControl.TextBkColor`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/textbkcolor-property/llms-full.txt) | Returns or sets the background color for selected text. |

### Methods

| Member | Description |
|---|---|
| [`TXTextControl.FontDialog`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontdialog-method/llms-full.txt) | Invokes the `TXTextControl`'s built-in font dialog box and, after the user has closed the dialog box, specifies whether the user has changed something. |
| [`TXTextControl.GrowFont`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/growfont-method/llms-full.txt) | Increases the font size of each font contained in the current text selection. |
| [`TXTextControl.InsertSymbolDialog`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/insertsymboldialog-method/llms-full.txt) | Opens a modeless dialog box which can be used to insert symbol characters. |
| [`TXTextControl.ShrinkFont`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/shrinkfont-method/llms-full.txt) | Decreases the font size of each font contained in the current text selection. |

### Events

| Member | Description |
|---|---|
| [`TXTextControl.CharFormatChange`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/charformatchange-event/llms-full.txt) | Occurs when the formatting attributes of the selected characters have been changed. |

### Related Pages

- [Paragraph Formatting](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/paragraph-formatting/llms-full.txt): alignment, indents, spacing, tabs and frames of paragraphs.
- [Stylesheet Formatting](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/stylesheet-formatting/llms-full.txt): apply formatting styles and open the style dialog box.
- [Built-in Dialog Boxes](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/dialog-boxes/llms-full.txt): every method that opens a built-in dialog box.
- [Text Formatting and Views](https://docs.textcontrol.com/tx-text-control-activex/document-editor/viewing/llms-full.txt): twips, view modes and the formatting area.

---

## Nearby

- **Previous:** [Programming Categories](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/llms-full.txt)
- **Next:** [Paragraph Formatting](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/paragraph-formatting/llms-full.txt)
