TX Text Control ActiveX

Character Formatting

Topic

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

Properties

MemberDescription
TXTextControl.AutoBaseLineReturns or sets values specifying whether the selected text is automatically sub- or superscripted.
TXTextControl.BaseLineSpecifies the baseline alignment for selected text.
TXTextControl.CapitalsReturns or sets values specifying whether lowercase letters are displayed with capital letters.
TXTextControl.CharacterScalingReturns or sets a character scaling, in percent of the average character width, of the selected text.
TXTextControl.CharacterSpacingReturns or sets a character spacing value, in twips, of the selected text.
TXTextControl.FontBoldReturns or sets the bold font style.
TXTextControl.FontItalicReturns or sets the italic font style.
TXTextControl.FontNameReturns or sets the font used to display text.
TXTextControl.FontSizeReturns or sets a value that specifies the size of the font used to display text.
TXTextControl.FontStrikethruReturns or sets the strikethrough font style.
TXTextControl.FontUnderlineReturns or sets the underline font style.
TXTextControl.FontUnderlineStyleThis property determines styles for the FontUnderline property.
TXTextControl.ForeColorReturns or sets the color used to display text in a TXTextControl.
TXTextControl.LocaleSpecifies a language for the selected text.
TXTextControl.TextBkColorReturns or sets the background color for selected text.

Methods

MemberDescription
TXTextControl.FontDialogInvokes 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.GrowFontIncreases the font size of each font contained in the current text selection.
TXTextControl.InsertSymbolDialogOpens a modeless dialog box which can be used to insert symbol characters.
TXTextControl.ShrinkFontDecreases the font size of each font contained in the current text selection.

Events

MemberDescription
TXTextControl.CharFormatChangeOccurs when the formatting attributes of the selected characters have been changed.