How to highlight text in a sentence using OpenXML?
问题 I am using below code to search and highlight text in a MS Word document, it works fine for point 1 but not point 2: 1. John Alter I search for Alter or John , it highlights John / Alter - works. 2. I am going to school I search for going , it highlights going but it changes its order as I am to school going - does not work. How to fix point 2? Below is my code. private void HighLightText(Paragraph paragraph, string text) { string textOfRun = string.Empty; var runCollection = paragraph