title: How do I find plain-text content controls within a .docx file and replace the text within using the OpenXML SDK?
body: <p>I'm working on a program that needs to output data to a Word document, in which I've placed plain-text content controls which are tagged. Basically, I'm after writing the following method (using C#)...</p>
  
  <pre><code>public static void SetContentControlText(WordprocessingDocument document, string contentControlTag, string text)
  {
      // TODO: Implement this method...
  }
  </code></pre>
  
  <p>The method should be able to fill in all plain-text content controls with the specified tag, regardless of their position within the structure of the document (i.e. it should be able to find the content controls in the main body of the document as well as inside tables .etc.).</p>
  
  <p>Thanks in advance!</p>