Now I can insert a text after the current cursor,using
Globals.ThisAddIn.Application.Selection.Range.Text = itm.Value;
I want to replace the text with a MergeField,but I don't know how to create a MergeField object using VSTO and how to insert it into a document.
This is how you insert merge field
To replace the text you can either for String.Replace in C# or Find object from Word Object Model.