TX Text Control ActiveX

Stylesheet Formatting

Topic

Formatting styles are named sets of character or paragraph attributes. TXTextControl exposes the style at the input position, a dialog box for creating, deleting and modifying styles and two events: one when the input position moves to text of another style, one when styles are added or removed.

The built-in Styles dialog box with the Modify Style dialog box open on top, showing the name, base style, following style, style type and the Font, Paragraph, Tabs and Numbering buttons, in the look of TX Text Control 10

To create and change styles in code, use the Style and Styles objects described under Stylesheet Programming.

Properties

MemberDescription
TXTextControl.StyleCurrentReturns or sets the formatting style at the current input position or, if text is selected, changes all styles of the selected text to the specified style.

Methods

MemberDescription
TXTextControl.StyleDialogInvokes the TXTextControl's built-in dialog box for creating, deleting and modifying formatting styles.

Events

MemberDescription
TXTextControl.StyleChangedOccurs after the character input position has been moved to a text part formatted with another style.
TXTextControl.StyleListChangedOccurs after one or more formatting styles have been added or removed.