C++
ACHAR* contents() const;
Description
Returns a pointer to a dynamically allocated buffer containing a copy of the character contents of the MText object. Formatting data used for word wrap calculations is removed before the string is copied.
Note: The calling application is responsible for the memory used by the returned string. The string should be freed using the free() function when it is no longer needed.
Links
Use Instead
ACDBCORE2D_PORT Acad::ErrorStatus contents(AcString & sContents) const;
History
AutoCAD 2019
This method has been marked as deprecated.