Share

AcDbMText::contentsRTF

C++

ACHAR* contentsRTF() const;

Description

Returns an RTF encoded string that is a translated version of the contents of the AcDbMText object.

MText codes are translated to RTF codes. Fonts, colors, tabs, and indents are preserved. The conversion uses 24 as the default point size. That is, text with no height override will have a point size of 24 and text with a height override will have a point size of the height override multiplied by 24. The caller is responsible for freeing the memory used by the returned string (preferably by using acutDelString().

Links

AcDbMText Class

Use Instead

ACDBCORE2D_PORT Acad::ErrorStatus contentsRTF(AcString & sContentsRTF) const;

History

AutoCAD 2019

This method has been marked as deprecated.

Was this information helpful?