We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Find and Replace Shapes

Thread ID:





116410 May 20,2014 10:36 AM May 21,2014 11:18 AM Windows Forms 1
Tags: DocIO
Sean Roddis
Asked On May 20, 2014 10:36 AM


is there any way to find and replace shapes of an existing document?

best reguards,

sean roddis

Sathish K [Syncfusion]
Replied On May 21, 2014 11:18 AM

Hi Sean,


Thank you for your interest in Syncfusion products.


As per the MS Word behaviour, DocIO doesn’t have any API to find and replace the auto shapes present in a word document. Alternatively we can find the auto shapes present in the word document based on the “Title” information of the shape and replace the shape with new shape which has the desired “Title”. We have prepared a sample to illustrate the same. In this sample we iterate the paragraph items and find shapes based on the given “Title”. Then we remove the shape from the paragraph which has the given title and inserts a new shape in the place of old shape. Please do find sample from below link.


Sample link:




This workaround is applicable for the “docx” format documents only since DocIO provides only preservation support for Auto shapes in Binary format document (.doc).


Please let us know if you have any other questions.





This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.