In order to accomplish your requirement, please try using CreateMarkup(…) method of PdfContentEditor class. Please take a look over the following code snippet.
For your reference, I have also attached the sample PDF file generated with this code.
[C#]
PdfContentEditor editor = new PdfContentEditor();<o:p></o:p>
In case you need to search particular string and need to get its coordinates/position information, then I would suggest you to please try using the code snippet shared over Replace Text in All Pages of a PDF Document (instead of replacing the whole string, you can only specify/set the ForgroundColor of TextFragment.
In the event of any further query, please feel free to contact.