title: How to Create and Insert a MergeField into a Word Document when Developing a AddIn Using VSTO
body: <p>Now I can insert a text after the current cursor,using</p>
  
  <pre><code>Globals.ThisAddIn.Application.Selection.Range.Text = itm.Value;
  </code></pre>
  
  <p>I want to replace the text with a <strong>MergeField</strong>,but I don't know <strong>how to create a MergeField object</strong> using VSTO and <strong>how to insert it into a document</strong>. </p>