Home Forums General XMetaL Discussion Inserting Element Reply To: Inserting Element

pooh2583

Reply to: Inserting Element

Hello,

Thanks for your reply.

I have tried to achieve above mntioned functionality i.e. using following logic

1.have selected two ranges range1 and range2 where range1 points at start pont of the node and range2 points at the end pont at the node.
2. If elemnt can not be inserted at the selected pont I keep moving the range1 to next insertion
point inh the node by using following code

var nextNode =child.nextSibling;
//select insertion point before the node
rng1.SelectBeforeNode(nextNode);
child = nextNode;
this logic is working, but I would like to know if is there any API present in Xmetal to move range to the next insertion point in the current node

also could you please let me know how two ranges can be checked for equality?

Regards

Reply

Products
Downloads
Support