格式化单行文字
 
 

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

单行文字 对象是使用活动文字样式创建的。用户可以通过修改与对象关联的文字样式或是编辑单行文字对象的特性来直接修改单行文字对象的格式,但不能对单个单词和字符应用格式。

To change a text style associated with an individual single-line text object, set the TextStyleId property to a new text style. Once you have changed the text style, you must regenerate the drawing or update the object to see the changes in your drawing.

要修改单个单行文字 对象的关联文字样式,请将 TextStyleId 属性设置为新的文字样式。只要修改了文字样式,就必须重新生成图形或更新对象以查看图形中的变化。

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

除了图元的标准可编辑特性(颜色、图层、线型等),用户还可以更改下列单行文本对象的其他属性::  

HorizontalMode

Specifies the horizontal alignment for the text.

 

指定文字的水平对象方式。

VerticalMode

Specifies the vertical alignment for the text.

 

指定文字的垂直对象方式。

Position

Specifies the insertion point for the text.

 

指定文字的插入点

Oblique

Specifies the oblique angle of the individual text object.

 

指定单个文字对象的倾斜角度。

Rotation

Specifies the rotation angle in radians for the text.

 

指定以弧度表示的文字的旋转角度。

WidthFactor

Specifies the scale factor for the text.

 

指定文字的缩放因子。

AlignmentPoint

Specifies the alignment point for the text.

 

指定文字的对齐点。

IsMirroredInX

Specifies whether the text is displayed backwards.

 

指定文字是否反向显示。

IsMirroredInY

Specifies whether the text is displayed upside-down.

 

指定文字是否倒置显示。

TextString

Specifies the actual text string displayed.

 

指定实际显示的文字字符串。

Once you have changed a property, regenerate the drawing or update the object to see the changes made.

一旦修改了属性,就必须重新生成图形或更新对象以查看所做的修改。