API Reference > Namespaces > OdDbMTextFragment Structure
OdDbMTextFragment Structure
Syntax
C++
struct OdDbMTextFragment { OdGePoint3d location; OdString text; OdString font; OdString bigfont; OdGePoint2d extents; double capsHeight; double widthFactor; double obliqueAngle; double trackingFactor; OdCmEntityColor color; bool vertical; bool stackTop; bool stackBottom; bool underlined; bool overlined; bool strikethrough; OdGePoint3d underPoints[2]; OdGePoint3d overPoints[2]; OdGePoint3d strikePoints[2]; OdString fontname; int charset; bool bold; bool italic; int changeStyle; bool lineBreak; bool newParagraph; };

DbMText.h

Members 
Description 
OdGePoint3d location; 
Insertion point. 
OdString text; 
Text string. 
OdString font; 
SHX Font. 
OdString bigfont; 
SHX Bigfont. 
OdGePoint2d extents; 
Extents in OCS. 
double capsHeight; 
Height. 
double widthFactor; 
Width factor. 
double obliqueAngle; 
Obliquing angle. 
double trackingFactor; 
Tracking factor. 
OdCmEntityColor color; 
Color. 
bool vertical; 
Text is vertical. 
bool stackTop; 
Text is top of stacked text. 
bool stackBottom; 
Text is bottom of stacked text. 
bool underlined; 
Text is underlined. 
bool overlined; 
Text is overlined. 
OdGePoint3d underPoints[2]; 
Underline endpoints. 
OdGePoint3d overPoints[2]; 
Overline endpoints. 
OdString fontname; 
TrueType font name, or empty string. 
int charset; 
TrueType character set. 
bool bold; 
Text is bold. 
bool italic; 
Text is italic. 
int changeStyle; 
0 == No change; 1 == Change to original; 2 == Change to other 
bool lineBreak; 
Text is followed by a line break. 
bool newParagraph; 
Text fragment starts new paragraph. 

 

  • details This struct is used to describe a fragment of text created by explodeFragments().

Each fragment contains a text string and its attributes. Corresponding C++ library: TD_Db

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