# Paragraph Formatting

> Set alignment, indents, line spacing, tabs, frames and page breaks of paragraphs in TXTextControl with Alignment, IndentL, LineSpacing and ParagraphDialog.

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

---

Alignment, indents, line spacing, tabs, frames and page breaks belong to a paragraph, not to single characters. The `TXTextControl` members below set them for a paragraph or a selected range of paragraphs.

Methods change indents, capitalization and text direction or open the paragraph and tab dialog boxes. Two events report that the input position has moved to another paragraph and that paragraph formatting has changed.

### Properties

| Member | Description |
|---|---|
| [`TXTextControl.Alignment`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/alignment-property/llms-full.txt) | Specifies the alignment of text in a `TXTextControl`. |
| [`TXTextControl.FrameColor`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/framecolor-property/llms-full.txt) | Returns or sets the background color for selected paragraphs. |
| [`TXTextControl.FrameDistance`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/framedistance-property/llms-full.txt) | Returns or sets the distance between text and paragraph frame for the currently selected paragraph(s). |
| [`TXTextControl.FrameLineColor`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/framelinecolor-property/llms-full.txt) | Returns or sets the color for the frame lines of selected paragraphs. |
| [`TXTextControl.FrameLineWidth`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/framelinewidth-property/llms-full.txt) | Specifies the line widths of the currently selected paragraphs' frames. |
| [`TXTextControl.FrameStyle`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/framestyle-property/llms-full.txt) | Returns or sets the style of the currently selected paragraphs' frames. |
| [`TXTextControl.IndentB`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/indentb-property/llms-full.txt) | Returns or sets an additional bottom distance (in [twips](https://docs.textcontrol.com/tx-text-control-activex/document-editor/viewing/#measure-in-twips)) for a paragraph or a selected range of paragraphs. |
| [`TXTextControl.IndentFL`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/indentfl-property/llms-full.txt) | Returns or sets an additional left indent (in [twips](https://docs.textcontrol.com/tx-text-control-activex/document-editor/viewing/#measure-in-twips)) for the first line of a paragraph or a selected range of paragraphs. |
| [`TXTextControl.IndentL`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/indentl-property/llms-full.txt) | Returns or sets the left indent (in [twips](https://docs.textcontrol.com/tx-text-control-activex/document-editor/viewing/#measure-in-twips)) for a paragraph or a selected range of paragraphs. |
| [`TXTextControl.IndentR`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/indentr-property/llms-full.txt) | Returns or sets the right indent (in [twips](https://docs.textcontrol.com/tx-text-control-activex/document-editor/viewing/#measure-in-twips)) for a paragraph or a selected range of paragraphs. |
| [`TXTextControl.IndentT`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/indentt-property/llms-full.txt) | Returns or sets an additional top distance (in [twips](https://docs.textcontrol.com/tx-text-control-activex/document-editor/viewing/#measure-in-twips)) for a paragraph or a selected range of paragraphs. |
| [`TXTextControl.Justification`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/justification-property/llms-full.txt) | Gets or sets the kind of justification in documents containing Arabic or Hebrew characters. |
| [`TXTextControl.KeepLinesTogether`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/keeplinestogether-property/llms-full.txt) | Gets or sets a value indicating whether a page break is allowed within a paragraph. |
| [`TXTextControl.KeepWithNext`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/keepwithnext-property/llms-full.txt) | If this property is set to true for a paragraph, it is displayed on the same page as its following paragraph. |
| [`TXTextControl.LineSpacing`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/linespacing-property/llms-full.txt) | Specifies the line spacing for the currently selected paragraphs as a percentage of the font size. |
| [`TXTextControl.LineSpacingT`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/linespacingt-property/llms-full.txt) | Specifies the line spacing for the currently selected paragraphs in [twips](https://docs.textcontrol.com/tx-text-control-activex/document-editor/viewing/#measure-in-twips). |
| [`TXTextControl.PageBreakBefore`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pagebreakbefore-property/llms-full.txt) | If this property is set to true for a paragraph, it is always displayed on top of a page. |
| [`TXTextControl.ParagraphCount`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/paragraphcount-property/llms-full.txt) | Returns the number of paragraphs, the document contains. |
| [`TXTextControl.TabCurrent`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tabcurrent-property/llms-full.txt) | Specifies the current tab number for the properties [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). |
| [`TXTextControl.TabPos`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tabpos-property/llms-full.txt) | Determines the position, in [twips](https://docs.textcontrol.com/tx-text-control-activex/document-editor/viewing/#measure-in-twips), of a certain tab. |
| [`TXTextControl.TabType`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tabtype-property/llms-full.txt) | Determines the type of a certain tab. |
| [`TXTextControl.TextDirection`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/textdirection-property/llms-full.txt) | Specifies the writing direction. |
| [`TXTextControl.WidowOrphanLines`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/widoworphanlines-property/llms-full.txt) | Gets or sets the number of lines for widow/orphan control. |

### Methods

| Member | Description |
|---|---|
| [`TXTextControl.ChangeCapitalization`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/changecapitalization-method/llms-full.txt) | Changes the capitalization of all selected characters depending on the Option parameter. |
| [`TXTextControl.ChangeTextDirection`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/changetextdirection-method/llms-full.txt) | Changes the text direction of all selected paragraphs. |
| [`TXTextControl.DecreaseIndent`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/decreaseindent-method/llms-full.txt) | Decreases the left indent of all paragraphs contained in the current text selection. |
| [`TXTextControl.IncreaseIndent`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/increaseindent-method/llms-full.txt) | Increases the left indent of all paragraphs contained in the current text selection. |
| [`TXTextControl.ParagraphDialog`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/paragraphdialog-method/llms-full.txt) | Invokes the `TXTextControl`'s built-in paragraph attributes dialog box and, after the user has closed the dialog box, specifies whether the user has changed something. |
| [`TXTextControl.ParagraphSelect`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/paragraphselect-method/llms-full.txt) | This method can be used to select the specified paragraph. |
| [`TXTextControl.TabDialog`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tabdialog-method/llms-full.txt) | Invokes the `TXTextControl`'s built-in dialog box for setting tabs. |

### Events

| Member | Description |
|---|---|
| [`TXTextControl.ParagraphChange`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/paragraphchange-event/llms-full.txt) | Occurs when the character input position has been moved to another paragraph. |
| [`TXTextControl.ParagraphFormatChange`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/paragraphformatchange-event/llms-full.txt) | Occurs when the paragraph attributes of the selected paragraphs have been changed. |

### Related Pages

- [Character Formatting](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/character-formatting/llms-full.txt): fonts, sizes, styles, colors and spacing of characters.
- [Bullets and Numbered Lists](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/lists/llms-full.txt): bulleted and numbered lists.
- [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.
- [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:** [Character Formatting](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/character-formatting/llms-full.txt)
- **Next:** [Bullets and Numbered Lists](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/lists/llms-full.txt)
