title: How to apply a Word Quick Style in C# - not just simple formatting but the entire style?
body: <p>I admit, I am very new to using the Interop libraries, but the advice people always seem to give is, record a macro and check out the vba code. The problem is, the macro does not record exactly what I am doing: <em>Clicking a Quick Style to apply it to the current selection</em>.</p>
  
  <p>My task is pretty simple: <strong>I need to apply a Quick Style to a Paragraph (<em>Microsoft.Office.Interop.Word.Paragraph</em>)</strong>. Using the <em>set_style</em> command however, only applies basic formatting, and the paragraph keeps it original Quick Style selection (<em>Normal</em>).</p>
  
  <p>Using Remou's approach it worked for me though, but it seems very similar to my own code, and I can not make it work, and I think it might be my understanding of the objectmodel that is a bit off.</p>
  
  <pre><code>public void AddParagraph(string text, string styleName = null)
  {
    Paragraph paragraph = _document.Content.Paragraphs.Add();
    if (styleName != null)
    {
      paragraph.Range.set_Style(_document.Styles[styleName]);
    }
  
    paragraph.Range.Text = text;
    paragraph.Range.InsertParagraphAfter();
  }
  </code></pre>
  
  <p>I then call it with e.g. <code>AddParagraph("A title", "Heading 1");</code>, but the result of using the above wrapper to build my document is, that no complete styles are applied, only font, color, size and bold/italics.</p>
  
  <p>I am using my own <code>.dotx</code> file, with my own defined and named styles, but simply copying the code from Remou works with my own template, so I do not think that is the issue, and using that code I am unable to figure out how to append multiple paragraphs with each their own styling.</p>
  
  <p>Can anyone point out what is wrong with my approach, or at least how I can make the answer provided by Remou work for my requirements? :)</p>