Hi,
is there a way to change the anchor position of a shape like a textbox (as in “anchor_textbox.png” and “anchor_textbox_2.png”). In Microsoft Word 2013 you can simply drag an drop the anchor to the paragraph you want it to be related to. This feature is important if you want to change the wrapping of the text (WrapType in Aspose.Words) in relation to the textbox (as in “anchor_textbox_3.png” and “anchor_textbox_4.png”). The only feature with anchors in Aspose.Words I have discovered so far is switching the locking of the anchor on/off in the shape object, but no clear way how I could possibly attach it to another paragraph inside the document. Thank you so much in advance.
Best regards.
Edit: I have attached the two Word Documents. If you select the textbox, you will see that its anchor is attached to a different paragraph in each document.
Hi Dolten,
Thank you for your quick reply. I have updated my original post with the two Word Documents attached.
Best regards.
Document doc = new Document(getMyDir() + "input_document.docx");DrawingML dml = (DrawingML)doc.getFirstSection().getBody().getFirstParagraph().getFirstChild();
doc.getFirstSection().getBody().getLastParagraph().appendChild(dml);doc.save(getMyDir() + “out.docx”);