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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

changing color of text in a word file

Thread ID:





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

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


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

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon