TX Text Control ActiveX

Paragraph Formatting

Topic

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

MemberDescription
TXTextControl.AlignmentSpecifies the alignment of text in a TXTextControl.
TXTextControl.FrameColorReturns or sets the background color for selected paragraphs.
TXTextControl.FrameDistanceReturns or sets the distance between text and paragraph frame for the currently selected paragraph(s).
TXTextControl.FrameLineColorReturns or sets the color for the frame lines of selected paragraphs.
TXTextControl.FrameLineWidthSpecifies the line widths of the currently selected paragraphs' frames.
TXTextControl.FrameStyleReturns or sets the style of the currently selected paragraphs' frames.
TXTextControl.IndentBReturns or sets an additional bottom distance (in twips) for a paragraph or a selected range of paragraphs.
TXTextControl.IndentFLReturns or sets an additional left indent (in twips) for the first line of a paragraph or a selected range of paragraphs.
TXTextControl.IndentLReturns or sets the left indent (in twips) for a paragraph or a selected range of paragraphs.
TXTextControl.IndentRReturns or sets the right indent (in twips) for a paragraph or a selected range of paragraphs.
TXTextControl.IndentTReturns or sets an additional top distance (in twips) for a paragraph or a selected range of paragraphs.
TXTextControl.JustificationGets or sets the kind of justification in documents containing Arabic or Hebrew characters.
TXTextControl.KeepLinesTogetherGets or sets a value indicating whether a page break is allowed within a paragraph.
TXTextControl.KeepWithNextIf this property is set to true for a paragraph, it is displayed on the same page as its following paragraph.
TXTextControl.LineSpacingSpecifies the line spacing for the currently selected paragraphs as a percentage of the font size.
TXTextControl.LineSpacingTSpecifies the line spacing for the currently selected paragraphs in twips.
TXTextControl.PageBreakBeforeIf this property is set to true for a paragraph, it is always displayed on top of a page.
TXTextControl.ParagraphCountReturns the number of paragraphs, the document contains.
TXTextControl.TabCurrentSpecifies the current tab number for the properties TabPos and TabType.
TXTextControl.TabPosDetermines the position, in twips, of a certain tab.
TXTextControl.TabTypeDetermines the type of a certain tab.
TXTextControl.TextDirectionSpecifies the writing direction.
TXTextControl.WidowOrphanLinesGets or sets the number of lines for widow/orphan control.

Methods

MemberDescription
TXTextControl.ChangeCapitalizationChanges the capitalization of all selected characters depending on the Option parameter.
TXTextControl.ChangeTextDirectionChanges the text direction of all selected paragraphs.
TXTextControl.DecreaseIndentDecreases the left indent of all paragraphs contained in the current text selection.
TXTextControl.IncreaseIndentIncreases the left indent of all paragraphs contained in the current text selection.
TXTextControl.ParagraphDialogInvokes 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.ParagraphSelectThis method can be used to select the specified paragraph.
TXTextControl.TabDialogInvokes the TXTextControl's built-in dialog box for setting tabs.

Events

MemberDescription
TXTextControl.ParagraphChangeOccurs when the character input position has been moved to another paragraph.
TXTextControl.ParagraphFormatChangeOccurs when the paragraph attributes of the selected paragraphs have been changed.