You are here: Symbol Reference > htmledit Namespace > Classes > THtmlEditor Class > THtmlEditor Methods > THtmlEditor.InsertElementTo Method
HTML Editor Library
ContentsIndexHome
PreviousUpNext
THtmlEditor.InsertElementTo Method

Insert (or move) element into other element at specified position.  

If destination element is text it will be divided into two new text elements.  

 

Pascal
procedure InsertElementTo(Element: TElement; InsertTo: TElement; CharPos: integer; var MoveCaret: boolean);
Parameters 
Description 
Element: TElement 
Element to insert  
InsertTo: TElement 
Destination element  
CharPos: integer 
Destination position  
var MoveCaret: boolean 
Returns true is element is inserted after or inside destination element  
Copyright (c) 2013. All rights reserved.
What do you think about this topic? Send feedback!