API Reference > OdDb Classes > OdDbMText Class > OdDbMText Methods > OdDbMText::setAttachment Method
OdDbMText::setAttachment Method
Syntax
C++
void setAttachment(AttachmentPoint type);
Parameters 
Description 
AttachmentPoint type 
[in] Type of the attachment point. 

Sets the type of the attachment point of this MText entity (DXF 71).

attachment must be one of the following: 

 

Name 
Value 
kTopLeft 
kTopCenter 
kTopRight 
kMiddleLeft 
kMiddleCenter 
kMiddleRight 
kBottomLeft 
kBottomCenter 
kBottomRight 

 

setAttachment() keeps the location of this MText entity constant while changing the attachment type, thereby changing the extents of (moving) this MText entity. 

setAttachmentMovingLocation() moves the location of the MText entity while changing the attachment type, thereby maintaining the extents (not moving) this MText entity.

Copyright © 2002–2021. Open Design Alliance. All rights reserved.