Alignment 属性

指定属性、属性参照或文字的水平和垂直对齐。 

参阅 | 示例

语法

object.Alignment

object

Attribute, AttributeRef, Text
使用该属性的对象。

Alignment

acAlignment 常数; 可读写

acAlignmentLeft

acAlignmentCenter

acAlignmentRight

acAlignmentAligned

acAlignmentMiddle

acAlignmentFit

acAlignmentTopLeft

acAlignmentTopCenter

acAlignmentTopRight

acAlignmentMiddleLeft

acAlignmentMiddleCenter

acAlignmentMiddleRight

acAlignmentBottomLeft

acAlignmentBottomCenter

acAlignmentBottomRight

说明

对齐到 acAlignmentLeft 的文字使用 InsertionPoint 属性来放置文字。

对齐到 acAlignmentAligned 或 acAlignmentFit 的文字同时使用 InsertionPoint 以及 TextAlignmentPoint 属性来放置文字。

对齐到其它任何位置的文字使用 TextAlignmentPoint 属性来放置文字。