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.

changing color of text in a word file

Thread ID:





123574 Mar 31,2016 10:20 AM Apr 1,2016 02:31 AM ASP.NET MVC 1
Tags: DocIO
Asked On March 31, 2016 10:20 AM

How can I add, color to the text, which I replaced here ?


Suganya Rathinam [Syncfusion]
Replied On April 1, 2016 02:31 AM

Hi Customer,

The Find API of DocIO helps to find the text in the Word document and using this API you can get the replaced text as a TextSelection. You can get the selected text as a single text range using the GetAsOneRange API of TextSelection class and change the font properties of the text. We have modified the given sample to change the color of the replaced text and attached the same. Please find the sample from the following link and let us know if it helps.

Sample Link:

Please find the following UG documentation link on Find and Replace functionality of DocIO for your reference.



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.