TX Text Control ActiveX Documentation

Style Object

A Style object is an OLE Automation object that represents a formatting style. To get a style or to iterate through all existing styles the Styles collection object can be used. A Style object has the following class name that can be used to create a new object with the CreateObject function:

TIS.TX.Style.17

A Style object has properties to set or to get attributes for fonts and paragraphs, frames, tabs and list settings. For paragraph-based styles all settings are possible, for character-based styles paragraph, tab and list settings cannot be used. The style's type can be obtained with the StyleType property.

Syntax

Style

Properties

PropertyDescription
AlignmentReturns or sets the formatting style's text alignment.
BaselineReturns or sets the formatting style's baseline alignment.
BaselineTypeReturns or sets the formatting style's baseline type.
BulletAttributeThis property returns or sets attributes for bulleted lists.
FontBoldReturns or sets the formatting style's font bold attribute.
FontItalicReturns or sets the formatting style's font italic attribute.
FontNameReturns or sets the formatting style's font.
FontSizeReturns or sets the formatting style's font size, in twips. For characterbased styles it can be zero to indicate that the font is inherited from the paragraph style.
FontStrikethruReturns or sets the formatting style's font strikethru attribute.
FontUnderlineReturns or sets the formatting style's underlining attributes.
ForeColorReturns or sets the formatting style's text color.
FrameDistanceReturns or sets the distance between the text and the frame of a paragraph, in twips.
FrameLineWidthReturns or sets the line width of a paragraph's frame, in twips.
FrameStyleReturns or sets the style of a paragraph's frame.
IndentBReturns or sets the formatting style's additional bottom distance for a paragraph, in twips.
IndentFLReturns or sets the formatting style's additional indent for the first line of a paragraph, in twips. This value can be negative.
IndentLReturns or sets the formatting style's left paragraph indent, in twips.
IndentRReturns or sets the formatting style's right paragraph indent, in twips.
IndentTReturns or sets the formatting style'additional top distance for a paragraph, in twips.
KeepLinesTogetherGets or sets a value indicating whether a page break is allowed within a paragraph.
KeepWithNextIf this property is set to true, a paragraph with this formatting style is displayed on the same page as its following paragraph.
LineSpacingReturns or sets the formatting style's line spacing in percent.
LineSpacingTReturns or sets the formatting style's line spacing, in twips.
ListTypeReturns or sets the formatting style's list type.
NextParaStyleReturns or sets the name of the style used after the user has pressed the RETURN key.
NumberingAttributeThis property returns or sets attributes for numbered lists.
PageBreakBeforeIf this property is set to true, a paragraph with this formatting style is always displayed on top of a page.
StyleNameReturns or sets the formatting style's name.
StyleTypeReturns the formatting style's type.
TabPosReturns or sets the formatting style's tabulator position, in twips.
TabTypeReturns or sets the formatting style's tabulator type.
TextBkColorReturns or sets the formatting style's text background color.
WidowOrphanLinesGets or sets the number of lines for widow/orphan control.

Methods

MethodDescription
ApplyApplies all style settings on the current document.

See Also

 
 
 

Products

Support

Downloads

Corporate

Buy Now