TextStyle Object (ActiveX)

A named, saved collection of settings that determines the appearance of text characters.

Supported Platforms: Windows only

Class Information

Class Name

AcadTextStyle

Object Inheritance
Object
   AcadObject
      AcadTextStyle
Create Using

VBA

TextStyles.Add
Access Via

VBA

TextStyles.Item
Document.ActiveTextStyle

Members

These members are part of this object:

Remarks

To control the settings on a text style, use the properties below, or the text style system variables. See "System Variables" in the AutoCAD user documentation for a list of text style system variables.

The active text style (set with the ActiveTextStyle property) determines the appearance of new text created in the drawing, and existing text that has no distinct text style specified.

If changes are made to the active TextStyle, the new TextStyle object must be reset as the active TextStyle, and the Regen method must be called for the changes to appear. To reset the active TextStyle, simply call the ActiveTextStyle property again with the updated TextStyle object.

To specify a distinct text style for an object so it will not change along with the active text style, use the StyleName property for the specific object.