• Fluent
  • Fluent Dark
  • Bootstrap v5
  • Bootstrap v5 Dark
  • Tailwind CSS
  • Tailwind CSS Dark
  • Material
  • Bootstrap v4
  • High Contrast
Mode Selection
Theme Selection
*Translated by Google Translator.
Essential Studio
All Controls

Example of Find and Highlight in ASP.NET Core Word (DocIO) Library

This sample demonstrates how to find a specific text pattern using regular expression and highlight it in an existing Word document using Find functionality of Essential Word (DocIO) library.
Click the button to view the generated Word document. Please note that Microsoft Word Viewer or Microsoft Word is required to view the resultant Word document.
Regular expression to find the text
Save As :    
DocIO allows you to find the text in the Word document and then to manipulate it.
  • You can find the first occurrence or all the occurrences of the text in the Word document.
  • You can find the static text or text pattern using regular expression.
  • You can find the text by matching case, whole word and all occurrence or first occurrence alone.
  • You can also find the content that spans across several paragraphs.
More information about the Find functionality can be found in this documentation section.