c#,office-interop,novacode-docx
Looking at the DocX source code of the Formatting in class I would say that you're looking for Highlight. So if you wanted something highlighted in blue rb.Highlight = Highlight.blue; Edit: This seems to have been already answered in this question http://stackoverflow.com/a/30141775/2039359...
If it is all the text inside the div you want, then you could do this. ASP.NET <div runat="server" id="design" style="width:600px"> SOME TEXT <span> text </span> </div> C#: string allTextInsideDiv = design.InnerText; //You should get "SOME TEXT text" Edited: In further to our discussion you could not get InnerText as...
You have to convert it to xml element. Try DocumentFormat.OpenXml library