AttachmentPoint 属性

指定 MText 对象的附着点。

参阅 | 示例

语法

object.AttachmentPoint

object

MText
使用该属性的对象。

AttachmentPoint

acAttachmentPoint 常数; 可读写

acAttachmentPointTopLeft

acAttachmentPointTopCenter

acAttachmentPointTopRight

acAttachmentPointMiddleLeft

acAttachmentPointMiddleCenter

acAttachmentPointMiddleRight

acAttachmentPointBottomLeft

acAttachmentPointBottomCenter

acAttachmentPointBottomRight

说明

附着点指定插入点对齐于文字边界的位置。用户选取的选项可决定文字相对于文字边界对齐及溢出。文字对齐的选项有Left、Right和 Center。文字溢出的选项有Top、Mid (middle)和Bottom。

     
  Top Left
  左侧对齐,
  向下溢出
  Top Center
  居中对齐,
 向下溢出
  Top Right
  右侧对齐
 向下溢出

     
  Mid Left
  左侧对齐,
 上下溢出
  Mid Center
  居中对齐,
 上下溢出
  Mid Right
  右侧对齐,
 上下溢出

     
  Bottom Left
  左侧对齐,
 向上溢出
  Bottom Center
  居中对齐,
 向上溢出
  Bottom Right
  右侧对齐,
 向上溢出

当 AttachmentPoint 改变后,现有边界框的位置不会改变;只有文字在边界框中位置重新对齐。然而, InsertionPoint 属性反映使用的附着点的坐标,所以 InsertionPoint 属性的值将改变以反映对齐方式的改变。