New text inherits height, width factor, obliquing angle, and text generation properties from the current text style. To create a text style, create a new instance of a TextStyleTableRecord object. Assign the new text style a name using the Name property. Then open the TextStyleTable object for write and use the Add method to create the new text style.
新的文字会从当前的文字样式继承高度、宽度比例、倾斜角度和文字生成等属性。要创建文字样式,请创建一个 TextStyleTableRecord 对象的新实例。并使用 Name 属性为新文字样式指定名字。然后以写的方式打开 TextStyleTable 对象,并使用 Add 方法添加新创建的文字样式。
Style names can contain letters, numbers, and the special characters dollar sign ($), underscore (_), and hyphen (-). AutoCAD converts the characters to uppercase. If you do not enter a style name, the new style will not have a name.
样式名称可以包含字母、数字和特殊字符美元符号 ($)、下划线 (_) 和连字符 (-)。AutoCAD 将字符转换为大写字符。如果不输入样式名称,新的样式将没有名字。
You can modify an existing style by changing the properties of the TextStyleTableRecord object. If you want to work with the current text style, use the TextStyle property of the Database object which holds the object id of the current text style.
用户可以通过修改 TextStyleTableRecord 对象的特性来修改现有的样式。如果你想使用当前文字样式,请使用 Database 对象的 TextStyle 属性,它保存着当前文字样式的 ObjectiD。
You can also update existing text of that style type to reflect the changes. Use the following properties to modify a TextStyleTableRecord object:
也可以更新该样式的现有文字以反映更改。请使用以下特性来修改 TextStyleTableRecord 对象:
指定适用于非 ASCII 字符集的特殊形定义文件。
指定与字体(字符样式)关联的文件。
指定定反向文字,倒置文字或两者都有
指定字体样式的字体、粗体、斜体、字符集,以及间距和系列等设置
指定文字是垂直的或水平的。
指定字符的倾斜角度。
指定字符的高度
指定字符的放大和缩小。
If you change an existing style's font or orientation, all text using that style is changed to use the new font or orientation. Changing text height, width factor, and oblique angle does not change existing text but does change subsequently created text objects.
如果修改一个已存在样式的字体或方向,所有使用这个样式的文字都会被修改而使用新的字体或方向。修改文字高宽比和倾斜角度不会更改现有文字,但是会影响随后创建的文字对象。
NoteThe drawing must be regenerated to see any changes to the above properties.
注意必须重生成,才能看到对上述特性所作的更改。