title: How to programmatically highlight word between parentheses in word document
body: <p>I'm trying to highlight text between parentheses in a word document, but my code highlights only the parentheses. Here is my code:</p>
  
  <pre><code>private void button5_Click(object sender, EventArgs e)
  {
      object textf = "(";
      object texs = ")";
      object color = Color.Cyan;
      object oMissing = System.Reflection.Missing.Value;
      acWord.Application.Selection.Find.ClearFormatting();
  
      acWord.Application.Selection.Find.HitHighlight(ref textf, ref color, ref oMissing, ref oMissing, ref oMissing, ref oMissing,
      ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing);
  
  } 
  </code></pre>