title: Replacing some text in PowerPoint
body: <p>I use <code>Microsoft.Office.Interop.PowerPoint</code> to replace some specific token at each slide from a *.pptx presentation.</p>
  
  <p>The problem is that the text box in which the token resides has lines which are formatted in different ways (e.g. lines with different font size). </p>
  
  <p>I actually tried doing the replacement by both</p>
  
  <p><code>shape.TextFrame.TextRange.Text = strStartText + replacementString + strEndText;</code></p>
  
  <p>and</p>
  
  <pre><code>shape.TextFrame.TextRange.Text = 
      shape.TextFrame.TextRange.Text.Replace(oldString, replacementString);
  </code></pre>
  
  <p>But it unifies and thus spoils all the formatting of my textbox.
  All the lines and words are now having the same size/colour etc.</p>
  
  <p>Is there any solution to this?</p>