Format Line Text

A Text object is created using the active text style. You can change the formatting of the Text object by changing the text style associated with it, or by editing the properties of the Text object. You cannot apply formats to individual words and characters.

To change a text style associated with an individual Text object, set the StyleName property to a new text style. Once you have changed the text style, use the Update method for the Text object to see the changes in your drawing.

In addition to the standard editable properties for entities (color, layer, linetype, and so forth), other properties that you can change on a Text object include the following:


Specifies the horizontal and vertical alignment for the text.


Specifies the insertion point for the text.


Specifies the oblique angle of the individual text object.


Specifies the rotation angle in radians for the text.


Specifies the scale factor for the text.


Specifies the alignment point for the text.


Specifies whether the text is displayed backward, upside-down, or both simultaneously.


Specifies the actual text string displayed.

Once you have changed a property, use the Update method to see the changes in your drawing.

NoteFor a complete list of methods and properties, see the Text object documentation in the AutoCADActiveX and VBA Reference.