Can MText text format codes be stripped from MText objects?

  1. FAQ
  2. »
  3. Text and Font Questions

Yes, they can. Use the OdDbMText::explodeFragments() method and these next members in the OdDbMTextFragment structure:

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 a new paragraph.