# Character and Paragraph Formatting

> Format text in VB6 with TXTextControl: fonts, bold, colors, alignment, indents, line spacing, tabs and paragraph frames, plus the Font and Paragraph dialogs.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control ActiveX > Document Editor > Character and Paragraph Formatting
- **5670 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/document-editor/formatting/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/document-editor/formatting/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/document-editor/formatting/llms-full.txt

---

`TXTextControl` formats text on two levels. Character attributes such as the font, the size, bold and the text color belong to single characters. Paragraph attributes such as the alignment, the indents, the line spacing, the tabs and the frame belong to a whole paragraph. Users set both with the button bar, the ruler bar and three built-in dialog boxes, and your Visual Basic 6 code sets them with properties of `TXTextControl` that work on the current selection.

The sections below start with the rules that all formatting properties share, then open the built-in dialog boxes the way the *TXWords* sample does and set character attributes, paragraph attributes, tabs and paragraph frames in code.

### How Formatting Works

- **Properties work on the selection.** A formatting property such as [FontBold](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontbold-property/llms-full.txt) returns and sets the attribute of the selected text. A paragraph property such as `Alignment` works on the paragraph at the current input position, the position of the caret, or on all selected paragraphs.
- **FormatSelection decides the scope.** The [FormatSelection](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/formatselection-property/llms-full.txt) property is `False` by default, and then character properties such as `FontName`, `FontSize`, `FontBold`, `ForeColor` and `TextBkColor` and the paragraph properties `Alignment` and `LineSpacing` apply to the complete text. Set it to `True` before your code formats selected text. At design time, when no text can be selected, these properties set the format of the complete text.
- **Mixed selections return a special value.** When the selection holds different settings, a property returns a value that says so: 2 for `FontBold`, `FontItalic`, `FontUnderline` and `FontStrikethru`, an empty string for `FontName`, 0 for `FontSize`, 4 for `Alignment` and &H8000 for the indent properties.
- **Sizes are in twips.** Indents, distances and tab positions are measured in *twips*, 1/1440 inch. [Text Formatting and Views](https://docs.textcontrol.com/tx-text-control-activex/document-editor/viewing/#measure-in-twips) explains the unit. Font sizes are the exception: [FontSize](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontsize-property/llms-full.txt) is in points.
- **Protection can switch formatting off.** In a protected document, [CanCharacterFormat](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/cancharacterformat-property/llms-full.txt) and [CanParagraphFormat](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/canparagraphformat-property/llms-full.txt) tell whether the selected text can be formatted. [Document Protection](https://docs.textcontrol.com/tx-text-control-activex/document-editor/protection/llms-full.txt) covers the permissions behind them.

Formatting through named styles has a page of its own, [Stylesheets](https://docs.textcontrol.com/tx-text-control-activex/document-editor/stylesheets/llms-full.txt), and so do bulleted and numbered lists, [Bulleted and Numbered Lists](https://docs.textcontrol.com/tx-text-control-activex/document-editor/lists/llms-full.txt).

### Let Users Format Text

A connected [TXButtonBar](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/llms-full.txt) offers combo boxes for the style, the font and the size and buttons for bold, italic, underline, alignment, lists and indents. A connected [TXRulerBar](https://docs.textcontrol.com/tx-text-control-activex/reference/txrulerbar/llms-full.txt) sets indents and tabs with the mouse. [Button Bar, Ruler Bar and Status Bar](https://docs.textcontrol.com/tx-text-control-activex/document-editor/toolbars/llms-full.txt) connects both to the control.

![The TXButtonBar of TXWords with the style, font and size combo boxes and the buttons for bold, italic, underline, font size, alignment, zoom, lists and indents.](https://docs.textcontrol.com/assets/img/tx-text-control-activex/button-bar.85db4637.webp)

For everything else, `TXTextControl` has built-in dialog boxes that a single method call opens. The **Format** menu of the *TXWords* sample opens them from its **Character...**, **Paragraph...** and **Tabs...** menu items:

```vbscript
' Call font dialog
Private Sub mnuFormat_Character_Click()
    TXTextControl1.FontDialog
End Sub

' Call paragraph dialog
Private Sub mnuFormat_Paragraph_Click()
    TXTextControl1.ParagraphDialog
End Sub

' Call Text Control's built-in tab dialog box
Private Sub mnuFormat_Tabs_Click()
    TXTextControl1.TabDialog
End Sub
```

The code works as follows:

- [FontDialog](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontdialog-method/llms-full.txt) opens the **Font** dialog box. Its **Font and Color** tab sets the font, the size, the text and background colors and the bold, italic, strikeout and underline attributes. Its **Position and Effects** tab sets subscript and superscript, the character spacing, capitals and the character scaling.
- [ParagraphDialog](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/paragraphdialog-method/llms-full.txt) opens the **Paragraph** dialog box. Its **Formatting and Indents** tab sets the alignment, the line spacing, the indents and the distances before and after the paragraph. Its **Frame and Page Breaks** tab sets the paragraph frame, the background color and the pagination options.
- [TabDialog](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tabdialog-method/llms-full.txt) opens the **Tabs** dialog box, which adds and deletes the tabs of the selected paragraphs and sets their alignment.

![The Font and Color tab of the built-in Font dialog box of TXTextControl with the font, size, text and background colors, attributes and underlining.](https://docs.textcontrol.com/assets/img/tx-text-control-activex/font-dialog-font-color.44aa8fd2.webp)

The changes the user makes apply to the selected text. Each method returns `True` when the user has changed something and `False` otherwise. `FontDialog` and `ParagraphDialog` take an optional zero-based tab index: `TXTextControl1.FontDialog 1` opens the **Font** dialog box on its **Position and Effects** tab.

The **Insert** menu of *TXWords* has a **Symbol...** item as well. [InsertSymbolDialog](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/insertsymboldialog-method/llms-full.txt) opens a modeless dialog box that inserts symbol characters, and the *TXWords* menu item calls it.

### Format Characters in Code

The following procedure selects the first five characters of the text and formats them bold, 14 points and red:

```vbscript
Private Sub mnuFormatTitle_Click()
    With TXTextControl1
        .FormatSelection = True
        .SelStart = 0
        .SelLength = 5
        .FontName = "Arial"
        .FontSize = 14
        .FontBold = 1
        .ForeColor = RGB(255, 0, 0)
        .SelLength = 0
    End With
End Sub
```

The code works as follows:

- `FormatSelection = True` makes the formatting properties work on the selection instead of the complete text.
- [SelStart](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/selstart-property/llms-full.txt) and [SelLength](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sellength-property/llms-full.txt) select the text. The first text position is 0.
- [FontName](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontname-property/llms-full.txt) and `FontSize` set the font and its size in points.
- `FontBold = 1` sets the bold style, and 0 resets it.
- [ForeColor](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/forecolor-property/llms-full.txt) sets the text color as an RGB value.
- `SelLength = 0` removes the selection again.

The *HighlightHyperlinks* procedure of the *Hyperlnk* sample formats text the same way: it sets `FormatSelection` to `True`, selects each link text and sets `ForeColor` and `FontUnderline`. [Hypertext Links](https://docs.textcontrol.com/tx-text-control-activex/document-editor/fields/hyperlinks/llms-full.txt) describes it.

#### Toggle an Attribute

A menu item or a button that switches bold on and off has to handle the mixed value 2. The following procedure makes a mixed or normal selection bold and a bold one normal:

```vbscript
Private Sub mnuFormatBold_Click()
    TXTextControl1.FormatSelection = True
    If TXTextControl1.FontBold = 1 Then
        TXTextControl1.FontBold = 0
    Else
        TXTextControl1.FontBold = 1
    End If
End Sub
```

[FontItalic](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontitalic-property/llms-full.txt), [FontUnderline](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontunderline-property/llms-full.txt) and [FontStrikethru](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontstrikethru-property/llms-full.txt) take the same values.

#### More Character Attributes

| Property | What it sets |
|---|---|
| [FontUnderlineStyle](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontunderlinestyle-property/llms-full.txt) | Single (&H1) or double (&H2) underlining, optionally for words only (&H4). |
| [TextBkColor](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/textbkcolor-property/llms-full.txt) | The background color of the selected text, as an RGB value. |
| [BaseLine](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/baseline-property/llms-full.txt) | A baseline offset in twips, positive for superscript and negative for subscript, up to 960 in both directions. |
| [AutoBaseLine](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/autobaseline-property/llms-full.txt) | Automatic subscript or superscript with values the font defines, such as `txSuperscript` or `txSubscript`. |
| [Capitals](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/capitals-property/llms-full.txt) | Lowercase letters shown as capitals: `txCapitals`, `txSmallCapitals` or `txPetiteCapitals`. |
| [CharacterSpacing](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/characterspacing-property/llms-full.txt) | A value in twips added to each character; a negative value reduces the spacing. |
| [CharacterScaling](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/characterscaling-property/llms-full.txt) | The character width in percent of the average character width. |
| [Locale](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/locale-property/llms-full.txt) | The language of the text, as a Windows locale identifier (LCID). |

`AutoBaseLine`, `Capitals`, `CharacterSpacing` and `CharacterScaling` are available since version 30.0, as [Version 30.0](https://docs.textcontrol.com/tx-text-control-activex/whats-new/3000/llms-full.txt) lists.

Users set subscript and superscript, the character spacing, capitals and the character scaling on the **Position and Effects** tab of the **Font** dialog box:

![The Position and Effects tab of the built-in Font dialog box of TXTextControl with sub- and superscript, position, character spacing, uppercase and character scaling.](https://docs.textcontrol.com/assets/img/tx-text-control-activex/font-dialog-effects.93a08c7e.webp)

#### Grow, Shrink and Recapitalize Text

Three methods change the selected text relative to its current format. [GrowFont](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/growfont-method/llms-full.txt) and [ShrinkFont](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/shrinkfont-method/llms-full.txt) step each font size in the selection up or down to the next size that the button bar and the **Font** dialog box offer. They return `False` when the maximum or minimum size has been reached. [ChangeCapitalization](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/changecapitalization-method/llms-full.txt) changes the case of the selected characters:

```vbscript
TXTextControl1.GrowFont
TXTextControl1.ChangeCapitalization ToUpper
```

`ChangeCapitalization` also takes `ToLower`, `ToggleCase`, `CapitalizeEachWord` and `CapitalizeEachSentence`.

### Format Paragraphs in Code

The following procedure centers the selected paragraphs, indents them by half an inch on both sides and adds space above and below them:

```vbscript
Private Sub mnuFormatQuote_Click()
    With TXTextControl1
        .FormatSelection = True
        .Alignment = 2
        .IndentL = 720
        .IndentR = 720
        .IndentT = 240
        .IndentB = 240
        .LineSpacing = 150
    End With
End Sub
```

The code works as follows:

- [Alignment](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/alignment-property/llms-full.txt) sets the alignment: 0 left, 1 right, 2 centered, 3 justified.
- [IndentL](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/indentl-property/llms-full.txt) and [IndentR](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/indentr-property/llms-full.txt) set the left and right indents in twips; 720 twips are half an inch.
- [IndentT](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/indentt-property/llms-full.txt) and [IndentB](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/indentb-property/llms-full.txt) add a distance above and below each paragraph, also in twips.
- [LineSpacing](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/linespacing-property/llms-full.txt) sets the line spacing in percent of the font size. [LineSpacingT](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/linespacingt-property/llms-full.txt) sets it in twips instead.

[IndentFL](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/indentfl-property/llms-full.txt) adds an indent for the first line. It can be negative, which creates a hanging indent. [IncreaseIndent](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/increaseindent-method/llms-full.txt) and [DecreaseIndent](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/decreaseindent-method/llms-full.txt) move the left indent of the selected paragraphs to the next or previous position, which the tab positions and the indents of the neighboring paragraphs define.

To format a paragraph by its number, select it first with [ParagraphSelect](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/paragraphselect-method/llms-full.txt). The first paragraph has the number 1, and [ParagraphCount](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/paragraphcount-property/llms-full.txt) returns the number of paragraphs.

Users set the alignment, the line spacing, the indents and the distances on the **Formatting and Indents** tab of the **Paragraph** dialog box:

![The Formatting and Indents tab of the built-in Paragraph dialog box of TXTextControl with alignment, structure level, line spacing, direction, indentation and distances.](https://docs.textcontrol.com/assets/img/tx-text-control-activex/paragraph-dialog-indents.9b4275d7.webp)

#### Control Page Breaks

Four properties decide how a paragraph breaks across pages. Each sets the value for all selected paragraphs, and all four are available since version 13.0:

- **[KeepLinesTogether](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/keeplinestogether-property/llms-full.txt)**, when `True`, allows no page break inside the paragraph.
- **[KeepWithNext](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/keepwithnext-property/llms-full.txt)**, when `True`, keeps the paragraph on the same page as the next one, for example a heading and its text.
- **[PageBreakBefore](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pagebreakbefore-property/llms-full.txt)**, when `True`, starts the paragraph at the top of a page.
- **[WidowOrphanLines](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/widoworphanlines-property/llms-full.txt)** sets the number of lines, 0 to 3, that must not be separated from the rest of the paragraph. 0 turns widow and orphan control off.

### Set Tabs

Each paragraph has up to 14 tabs. [TabCurrent](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tabcurrent-property/llms-full.txt) chooses the tab, numbered from 1 to 14, and [TabPos](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tabpos-property/llms-full.txt) and [TabType](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tabtype-property/llms-full.txt) set its position in twips and its type. The following code, taken from the reference, deletes all tabs of the selected paragraphs and creates right-aligned tabs every half inch:

```vbscript
' Delete all tabs
For n = 14 To 1 Step -1
   TXTextControl1.TabCurrent = n
   TXTextControl1.TabPos = 0
Next n
' Create new tabs
For n = 1 To 14
   TXTextControl1.TabCurrent = n
   TXTextControl1.TabPos = n * 720
   If (TXTextControl1.TabPos > 0) Then _
      TXTextControl1.TabType = 2
Next n
```

The code works as follows:

- The first loop sets the position of each tab to 0, which deletes it. `TXTextControl` sorts the tabs by position whenever one changes, so a tab's number can change when it moves.
- The second loop sets the positions 720, 1440 and so on. Tabs outside the paragraph are set to zero automatically, so the code checks `TabPos` before it sets the type.
- `TabType` 2 is a right tab. 1 is a left tab, 3 a centered tab, 4 a decimal tab and 5 a right tab at the rightmost text position.

Users add and delete tabs in the **Tabs** dialog box that `TabDialog` opens:

![The built-in Tabs dialog box of TXTextControl with the tab stop positions, the leader, the alignment options and the Add, Delete and Delete All buttons.](https://docs.textcontrol.com/assets/img/tx-text-control-activex/tabs-dialog.d2c2902d.webp)

### Add Frames and Background Colors

A paragraph frame draws lines around or between paragraphs, for example a line above a caption. [FrameStyle](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/framestyle-property/llms-full.txt) combines values for the lines to draw: &H1 left, &H2 right, &H4 top, &H8 bottom, &H10 a vertical line at each tab, &H20 a single and &H40 a double line. The following code draws a single-line box around the selected paragraphs and gives them a light gray background:

```vbscript
With TXTextControl1
    .FrameStyle = &H1 Or &H2 Or &H4 Or &H8 Or &H20
    .FrameLineWidth = 20
    .FrameDistance = 120
    .FrameLineColor = RGB(0, 0, 128)
    .FrameColor = RGB(230, 230, 230)
End With
```

The code works as follows:

- `FrameStyle` sets the four frame lines as a single line. The values from &H100 on reset lines, and &H80 connects the boxes of consecutive paragraphs into one box.
- [FrameLineWidth](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/framelinewidth-property/llms-full.txt) sets the width of the lines, and [FrameDistance](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/framedistance-property/llms-full.txt) the distance between the text and the frame.
- [FrameLineColor](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/framelinecolor-property/llms-full.txt) sets the color of the lines, and [FrameColor](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/framecolor-property/llms-full.txt) the background color of the paragraphs. Both are available since version 24.0.

Users set the paragraph frame, the background color and the pagination options on the **Frame and Page Breaks** tab of the **Paragraph** dialog box:

![The Frame and Page Breaks tab of the built-in Paragraph dialog box of TXTextControl with the frame lines, line width and color, background color and pagination options.](https://docs.textcontrol.com/assets/img/tx-text-control-activex/paragraph-dialog-frames.4dc0ad1f.webp)

### Keep Menus and Controls in Step

`TXTextControl` fires events when the format at the caret changes, so that your own toolbar or menu can show the current state:

- **[CharFormatChange](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/charformatchange-event/llms-full.txt)** occurs when the character attributes of the selection have changed. It also occurs when fonts were adapted to a new output device.
- **[ParagraphFormatChange](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/paragraphformatchange-event/llms-full.txt)** occurs when the attributes of the selected paragraphs have changed.
- **[ParagraphChange](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/paragraphchange-event/llms-full.txt)** occurs when the input position has moved to another paragraph.

The following handler keeps a checked **Bold** menu item in step with the text:

```vbscript
Private Sub TXTextControl1_CharFormatChange()
    mnuFormatBold.Checked = (TXTextControl1.FontBold = 1)
End Sub
```

*TXWords* enables and disables its **Format** menu items when the menu opens. It checks whether the selection can be formatted at all:

```vbscript
Private Sub mnuFormat_Click()
    With TXTextControl1
        mnuFormat_Character.Enabled = .CanCharacterFormat
        mnuFormat_Paragraph.Enabled = .CanParagraphFormat
        mnuFormat_BulletsAndNumbering.Enabled = .CanParagraphFormat
        mnuFormat_Styles.Enabled = .CanStyleFormat
        ' ...
    End With
End Sub
```

### Key Members

| Member | Description |
|---|---|
| [FormatSelection](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/formatselection-property/llms-full.txt) | Makes formatting properties work on the selection instead of the complete text. |
| [FontName](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontname-property/llms-full.txt), [FontSize](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontsize-property/llms-full.txt) | Set the font and its size in points. |
| [FontBold](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontbold-property/llms-full.txt), [FontItalic](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontitalic-property/llms-full.txt), [FontUnderline](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontunderline-property/llms-full.txt) | Set the font styles; 2 indicates a mixed selection. |
| [ForeColor](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/forecolor-property/llms-full.txt), [TextBkColor](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/textbkcolor-property/llms-full.txt) | Set the text color and the text background color. |
| [Alignment](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/alignment-property/llms-full.txt) | Sets the paragraph alignment. |
| [IndentL](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/indentl-property/llms-full.txt), [IndentR](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/indentr-property/llms-full.txt), [IndentFL](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/indentfl-property/llms-full.txt) | Set the left, right and first-line indents in twips. |
| [LineSpacing](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/linespacing-property/llms-full.txt) | Sets the line spacing in percent of the font size. |
| [TabCurrent](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tabcurrent-property/llms-full.txt), [TabPos](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tabpos-property/llms-full.txt), [TabType](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tabtype-property/llms-full.txt) | Choose a tab and set its position and type. |
| [FrameStyle](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/framestyle-property/llms-full.txt) | Sets the frame lines of the selected paragraphs. |
| [FontDialog](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontdialog-method/llms-full.txt), [ParagraphDialog](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/paragraphdialog-method/llms-full.txt), [TabDialog](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tabdialog-method/llms-full.txt) | Open the built-in dialog boxes for characters, paragraphs and tabs. |
| [CharFormatChange](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/charformatchange-event/llms-full.txt), [ParagraphFormatChange](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/paragraphformatchange-event/llms-full.txt) | Occur when the character or paragraph attributes have changed. |

The programming categories [Character Formatting](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/character-formatting/llms-full.txt) and [Paragraph Formatting](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/paragraph-formatting/llms-full.txt) list all members.

### Related Pages

- [Stylesheets](https://docs.textcontrol.com/tx-text-control-activex/document-editor/stylesheets/llms-full.txt): format text with named character and paragraph styles.
- [Bulleted and Numbered Lists](https://docs.textcontrol.com/tx-text-control-activex/document-editor/lists/llms-full.txt): bullets, numbers and list levels.
- [Button Bar, Ruler Bar and Status Bar](https://docs.textcontrol.com/tx-text-control-activex/document-editor/toolbars/llms-full.txt): the bars that format text without code.
- [Built-in Dialog Boxes](https://docs.textcontrol.com/tx-text-control-activex/document-editor/dialog-boxes/llms-full.txt): every dialog box that one method call opens.
- [Text Formatting and Views](https://docs.textcontrol.com/tx-text-control-activex/document-editor/viewing/llms-full.txt): twips and the view modes.
- [A Word Processor](https://docs.textcontrol.com/tx-text-control-activex/document-editor/word-processor/llms-full.txt): the *TXWords* sample and its menus.

---

## Nearby

- **Previous:** [Printing](https://docs.textcontrol.com/tx-text-control-activex/document-editor/printing/llms-full.txt)
- **Next:** [Stylesheets](https://docs.textcontrol.com/tx-text-control-activex/document-editor/stylesheets/llms-full.txt)
