title: Word Interop Delete results in Wrong Parameter
body: <p>I have the pleasure to write some code that moves around stuff in an Office XP environment. I've referenced the OfficeXP Interop Assemblies and written code to Search/Replace stuff. That works fine. Now I need to delete Text around a Bookmark and i keep getting Exceptions thrown at me.</p>
  
  <p>Here is some of the code:</p>
  
  <pre><code>            object units = WdUnits.wdLine;
              object lines = 2;
              object extend = WdMovementType.wdExtend;
  
              object bookmarkName = "Bank1";
              var bm = doc.Bookmarks;
              var bm1 = doc.Bookmarks.get_Item(bookmarkName);
              var ra = bm1.Range;
  
              ra.Delete(ref units, ref lines);
  </code></pre>
  
  <p>The last line is where i get a "Wrong Parameter" Exception. Looking at the Definition in the MSDN I kind of think I'm right. But obviously I'm not. Hope you guys can help me out here.</p>
  
  <p><strong>Update</strong>: ok, i see. Using the <code>Delete</code> method on the <code>Range</code> object i can only use <code>wdWord</code> as a Parameter. I'd like to change my question now: what i do want to do is delete two lines starting from the bookmark. How would i do this?</p>