Share

AcDbMText::setAttachment

C++

Acad::ErrorStatus setAttachment(
    AttachmentPoint
);

Description

This function sets type to be the AttachmentPoint type for the MText object.

The AttachmentPoint value determines how the text will be oriented around the initial insertion point of the MText object. For example, if the AttachmentPoint is AttachmentPoint::kMiddleCenter, then the text body will be displayed such that the MText insertion point is in the middle (both width and height directions) of the text body.

The AttachmentPoint enumerated type has the following possible values:

AttachmentPoint::kTopLeft

AttachmentPoint::kTopCenter

AttachmentPoint::kTopRight

AttachmentPoint::kMiddleLeft

AttachmentPoint::kMiddleCenter

AttachmentPoint::kMiddleRight

AttachmentPoint::kBottomLeft

AttachmentPoint::kBottomCenter

AttachmentPoint::kBottomRight

Returns Acad::eOk if successful or Acad::eInvalidInput if the data passed in is not acceptable.

Parameters

Parameters Description
unnamed Input desired AttachmentPoint type value

Links

AcDbMText Class

Was this information helpful?