API Reference > OdDg Classes > OdDgText2d Class > OdDgText2d Methods > OdDgText2d::getPosition Method
OdDgText2d::getPosition Method
Syntax
C++
virtual OdGePoint2d getPosition() const;

get/set text position as a result of calculation text properties as origin, actual justification, height, width, direction, font and etc... Call it when an element has been already added to database. Only in this case it is possible to get complete data (for instance, text font data) to calculate right geometry extents.

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