Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
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; };
Members
Description
location
Insertion point.
text
Text string.
font
SHX Font.
bigfont
SHX Bigfont.
extents
Extents in OCS.
capsHeight
Height.
widthFactor
Width factor.
obliqueAngle
Obliquing angle.
trackingFactor
Tracking factor.
color
Color.
vertical
Text is vertical.
stackTop
Text is top of stacked text.
stackBottom
Text is bottom of stacked text.
underlined
Text is underlined.
overlined
Text is overlined.
underPoints
Underline endpoints.
overPoints
Overline endpoints.
fontname
TrueType font name, or empty string.
charset
TrueType character set.
bold
Text is bold.
italic
Text is italic.
changeStyle
0 == No change; 1 == Change to original; 2 == Change to other
lineBreak
Text is followed by a line break.
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

File: DbMText.h 

Module: API Reference 

Copyright © 2002-2022. Open Design Alliance All rights reserved.