codebase="hhctrl.ocx#Version=4,73,8561,0"> codebase="hhctrl.ocx#Version=4,73,8561,0" > codebase="hhctrl.ocx#Version=4,73,8561,0" >
 
  TextStyle object

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

VBA class name:

AcadTextStyle 

Create using:

TextStyles.Add 

Access via:

TextStyles.Item
Document.ActiveTextStyle 

To control the settings on a text style, use the properties below, or the text style system variables. See "System Variables" in the AutoCAD Command Reference 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.

Methods

Delete

GetExtensionDictionary

GetFont

GetXData

SetFont

SetXData  

Properties

Application

BigFontFile

Document

FontFile

Handle

HasExtensionDictionary

Height

LastHeight

Name

ObjectID

ObjectName

ObliqueAngle

OwnerID

TextGenerationFlag

Width  

Events

Modified  

 

   Comments?