TWPRTFDataCursor

<< Click to Display Table of Contents >>

Navigation:  Programming > Move cursor / select text >

TWPRTFDataCursor

The cursor class is responsible for cursor movement, text selection and the assignment of properties to the selected or current text. It is owned by the TWPRTFDataCollection.  This means if different editor components share the same RTFDataCollection they also share the same cursor.

 

The class TWPRTFDataCursor has versatile methods to manage markers which are dropped in the text to be collected again later, for example to restore a cursor position or a selection.

It also contains moving and selection methods. It offers access to the interfaces to change the attributes of the selected text or the current writing mode.