Stylesheet Programming

Classes

Class Description
TXTextControl.FormattingStyle The FormattingStyle class is the base class for the InlineStyle and ParagraphStyle classes.
TXTextControl.FormattingStyleCollection The FormattingStyleCollection class is the base class of the ParagraphStyleCollection and InlineStyleCollection classes.
TXTextControl.InlineStyle The InlineStyle class defines a formatting style that can be used to format single words in a line of text.
TXTextControl.InlineStyleCollection An instance of the InlineStyleCollection class contains all inline formatting styles in the current document represented through objects of the type InlineStyle.
TXTextControl.ParagraphStyle The ParagraphStyle class defines a formatting style for paragraphs.
TXTextControl.ParagraphStyleCollection An instance of the ParagraphStyleCollection class contains all paragraph formatting styles in the current document represented through objects of the type ParagraphStyle.

Constructors

Constructor Description
TXTextControl.InlineStyle Creates a new instance of the InlineStyle class.
TXTextControl.ParagraphStyle Creates a new instance of the ParagraphStyle class.

Enumerations

Enumeration Description
TXTextControl.InlineStyle.Attributes Determines the style's attributes.

Methods

Method Description
TXTextControl.FormattingStyle.Apply Applies all set attributes of the style to the current document.
TXTextControl.FormattingStyleCollection.GetEnumerator Returns an enumerator that can be used to iterate through the collection.
TXTextControl.FormattingStyleCollection.Remove Removes a formatting style from a Text Control document.
TXTextControl.InlineStyle.IsInheritedFromParagraph Informs about whether one or more of the style's attributes are inherited from the surrounding paragraph.
TXTextControl.InlineStyle.ResetToParagraph Resets one or more of the style's attributes to its default value which is the same value as defined for the surrounding paragraph.
TXTextControl.InlineStyleCollection.Add Adds to new formatting style to the current document.
TXTextControl.InlineStyleCollection.CopyTo Copies the elements of the collection to an array, starting at a particular index.
TXTextControl.InlineStyleCollection.GetItem Gets a particular style from the collection.
TXTextControl.ParagraphStyleCollection.Add Adds to new formatting style to the current document.
TXTextControl.ParagraphStyleCollection.CopyTo Copies the elements of the collection to an array, starting at a particular index.
TXTextControl.ParagraphStyleCollection.GetItem Gets a particular style from the collection.

Properties

Property Description
TXTextControl.FormattingStyle.AutoBaseline Gets or sets values specifying automatic sub- or superscripted text.
TXTextControl.FormattingStyle.Baseline Gets or sets a user-defined baseline alignment, in twips, of the style.
TXTextControl.FormattingStyle.BaseStyle Gets the FormattingStyle which is the base style of this style.
TXTextControl.FormattingStyle.Bold Gets or sets the bold attribute of the style.
TXTextControl.FormattingStyle.Capitals Gets or sets values specifying wheather lowercase letters are displayed with capital letters.
TXTextControl.FormattingStyle.CharacterScaling Gets or sets the style's character scaling, in percent of the average character width.
TXTextControl.FormattingStyle.CharacterSpacing Gets or sets the style's character spacing value, in twips.
TXTextControl.FormattingStyle.Culture Gets or sets the style's culture.
TXTextControl.FormattingStyle.FontName Gets or sets the font of the style.
TXTextControl.FormattingStyle.FontSize Gets or sets the font's size of the style.
TXTextControl.FormattingStyle.ForeColor Gets or sets the style's color used to display the text.
TXTextControl.FormattingStyle.Italic Gets or sets the italic attribute of the style.
TXTextControl.FormattingStyle.Name Gets or sets the name of the style.
TXTextControl.FormattingStyle.Strikeout Gets or sets the strikeout attribute of the style.
TXTextControl.FormattingStyle.TextBackColor Gets or sets the style's text background color.
TXTextControl.FormattingStyle.Underline Gets or sets underlining styles for the style.
TXTextControl.FormattingStyleCollection.Count Gets the number of elements contained in the collection.
TXTextControl.FormattingStyleCollection.IsSynchronized Returns true if the collection is designed to be thread safe, otherwise, it returns false.
TXTextControl.FormattingStyleCollection.SyncRoot Gets an object that can be used to synchronize access to the collection.
TXTextControl.ParagraphStyle.FollowingStyle Gets or sets the name of the style that TextControl automatically selects for the following paragraph after the user has pressed the ENTER key.
TXTextControl.ParagraphStyle.ListFormat Gets or sets the style's bulleted or numbered list and/or its formatting attributes.
TXTextControl.ParagraphStyle.ParagraphFormat Gets or sets the style's paragraph attributes.
TXTextControl.ServerTextControl.InlineStyles Gets a collection of all inline styles the current document contains.
TXTextControl.ServerTextControl.ParagraphStyles Gets a collection of all paragraph styles the current document contains.