Share

AcDbTextEditor Class

Class Hierarchy

AcDbTextEditorSelectable
    AcDbTextEditor
        AcEdInplaceTextEditor

C++

class AcDbTextEditor : public AcDbTextEditorSelectable;

File

dbtexteditor.h

Description

The AcDbTextEditor represent the text editor in the db. You can create a text editor from a AcDbMtext entity. From the text editor the user can access the information about the MTEXT objects like selection, cursor, columns, paragraphs, wipeout and so on. You can also input/delete some characters in the current cursor position (AcDbTextEditorCursor). When you don't need the text editor, make sure to call the close() function to release the allocated resources. In that function it has a parameter to tell the editor to save/don't save the changes back to the MTEXT object. Also please note that the text editor needs an opened MTEXT object. And after the editor is closed it will not close your MTEXT object. Please manage the input entity life cycle by hand. Note that the location in text editor is a volatile object. If you save to one location, then call some functions (for example the columns setting functions, paragraph setting function, selection/cursor inserting functions and so on.), the saved location is in invalid state.

Links

AcDbTextEditor Enumerations, AcDbTextEditor Methods

Was this information helpful?