HRESULT TextMove (DWORD dwStart, DWORD dwNumChars,
DWORD dwMoveTo);
This moves text from one section of the virtual document to another. This takes a starting point, number of characters , destination, and reason for the move. If any training data is attached, then that is moved also. Bookmarks are also moved.
The selection (see TextSelGet TextSelSet) is moved or resized by calling this. If the selection is entirely after the move location then it is moved forward/backwards by the number of inserted characters. If the text changed is within the selection then the selection is shrunk/enlarged by the number of characters removed/inserted. If the selection and the text modifications overlap the selection is not changed.
· Returns NOERROR if successful, or one of these error values:
E_INVALIDARG
E_OUTOFMEMORY
dwStart
[in] Starting character. If this exceeds the size of the buffer then an error is returned.
dwNumChars
[in] Number of characters to move.
dwMoveTo
[in] Position to move the starting text to.