codebase="hhctrl.ocx#Version=4,73,8561,0"> codebase="hhctrl.ocx#Version=4,73,8561,0" > codebase="hhctrl.ocx#Version=4,73,8561,0" >
 
  AttributeReference 对象

属性参照,含有连接到块的文字的对象。(2006修改)

VBA 类名:

AcadAttributeReference 

创建方法

ModelSpace.InsertBlock
PaperSpace.InsertBlock
Block.InsertBlock 

访问途径

Block.GetAttributes 

用户不能直接创建属性参照。属性参照是当包含有属性定义的图块插入图形中时自动增加的。要访问插入图块的属性参照,可使用 GetAttributes 方法。该方法返回附着于插入图块的所有属性参照的数组。

当用户获得一个属性参照,可使用以下方法和属性来编辑或查询它的值:

方法

ArrayPolar

ArrayRectangular

Copy

Delete

GetBoundingBox

GetExtensionDictionary

GetXData

Highlight

Mirror

Mirror3D

Move

Rotate

Rotate3D

ScaleEntity

SetXData

TransformBy

Update  

属性

Application

Alignment

Backward

Constant

Document

FieldLength

Handle

HasExtensionDictionary

Height

HorizontalAlignment

Hyperlinks

InsertionPoint

Invisible

Layer

Linetype

LinetypeScale

Lineweight

LockPosition

Normal

ObjectID

ObjectName

ObliqueAngle

OwnerID

PlotStyleName

Preset

Rotation

ScaleFactor

StyleName

TagString

TextAlignmentPoint

TextGenerationFlag

TextString

Thickness

TrueColor

UpsideDown

Verify

VerticalAlignment

Visible  

事件

Modified  

说明

该对象在 2006 版本中不再支持 PresetVerifyHorizontalAlignment VerticalAlignment 属性,直接使用 Alignment 属性可对齐文字

该对象在 2006 版本中增加支持 LockPosition 属性。