title: Using Interop.Word, is there a way to do a replace (using Find.Execute) and keep the original text's justification?
body: <p>I'm attempting to write find/replace code for Word documents using Word Automation through Interop.Word (11.0).  My documents all have various fields (that don't show up in Document.Fields) that are surrounded with brackets, eg., <code>&lt;DATE&gt;</code> needs to be replaced with <code>DateTime.Now.Format("MM/dd/yyyy")</code>.  The find/replace works fine.  However, some of the text being replaced is right-justified, and upon replacement, the text wraps to the next line.  Is there any way that I can keep the justification when I perform the replace?  Code is below:</p>
  
  <pre><code>using Word = Microsoft.Office.Interop.Word;
  
  Word.Application wordApp = null;
  try
  {
      wordApp = new Word.Application {Visible = false};
      //.... open the document ....
      object unitsStory = Word.WdUnits.wdStory;
      object moveType = Word.WdMovementType.wdMove;
      wordApp.Selection.HomeKey(ref unitsStory, ref moveType);
      wordApp.Selection.Find.ClearFormatting();
      wordApp.Selection.Find.Replacement.ClearFormatting();  //tried removing this, no luck
      object replaceTextWith = DateTime.Now.ToString("MM/dd/yyyy");
      object textToReplace = "&lt;DATE&gt;";
      object replaceAll = Word.WdReplace.wdReplaceAll;
      object typeMissing = System.Reflection.Missing.Value;
      wordApp.Selection.Find.Execute(ref textToReplace, ref typeMissing, 
          ref typeMissing, ref typeMissing, ref typeMissing, ref typeMissing, 
          ref typeMissing, ref typeMissing, ref typeMissing, ref typeMissing, 
          ref replaceTextWith, ref replaceAll, ref typeMissing, ref typeMissing, 
          ref typeMissing, ref typeMissing);
      // ... save quit etc.... 
  }
  finally
  {
       //clean up wordApp
  }
  </code></pre>
  
  <p>TIA.</p>