API Reference > OdDg Classes > OdDgText2d Class
OdDgText2d Class
OdDgText2dOdDgText2dOdDgText2dOdDgText2dOdDgText2dOdDgText2d
Syntax
C++
class OdDgText2d : public OdDgGraphicsElement, public OdDgTextExtended;

DgText.h

Corresponding C++ library: TG_Db 

 

 
Name 
Description 
 
 
 
Applies TextStyle settings to Text element. Attention: it should be called only after adding element to model 
 
 
 
Copies the contents of the specified object into this object when possible.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Operate with color indices. See OdDg::ColorIndexConstants for some special values. See OdDgColorTable for the methods to translate indices to RGB values and back 
 
the number of CR which should be added after the text element 
 
 
 
for text node feature support 
 
MKU 06/19/07 
 
 
 
 
 
Text can be 'italics' even if it has 0 slant (for instance, TrueType font). So this method sets 'italics' flag in case of true; and resets 'italics' flag and 'slant' in case of false. 
 
 
 
 
 
 
 
 
 
 
 
get/set origin value which text element is to be placed with left-bottom (default) justification without taking into account other text properties as height, width, direction, font and etc... 
 
 
 
 
 
 
 
 
 
 
 
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. 
 
2d-specific methods 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
the text 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
for DG 2.6.3
enum Spacing { sNone = 0 , sInterCharSpacing = 1 , sFixedWidthSpacing = 2 , sAcadInterCharSpacing = 3 }; 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
This is the overview for the subGetGeomExtents method overload. 
 
overrides from OdDgElement 
 
Called by setDatabaseDefaults() after the values are set.
 
 
 
 
 
 
overrides for OdGiDrawable 
 
This is the overview for the TEXT_FLAGS_DEF method overload. 
 
This is the overview for the TEXTSTYLE_OVERRIDE_FLAGS_DEF method overload. 
Copyright © 2002–2021. Open Design Alliance. All rights reserved.