title: c# Interop Word Document add Style
body: <p>I want to add style to a paragraph, but depending on the word language version I have to use a different name. Now I'm creating an application for multiple users, and if they have an english version i can use "Header 1", but if they don't the style is not recognized. I was wondering what I should do, should I add a new style? I've been looking into this but I can't figure out how.</p>
  
  <p>So on my dutch version i use:</p>
  
  <pre><code>selection.TypeParagraph();
  object kop1 = "Kop1";
  selection.set_Style(kop1);
  selection.TypeText("test");
  </code></pre>
  
  <p>but english i need:</p>
  
  <pre><code>selection.TypeParagraph();
  object kop1 = "Header 1";
  selection.set_Style(kop1);
  selection.TypeText("test");
  </code></pre>
  
  <p>I actually need this to create a content table, I can't create a content table if I don't use the styles, right? Otherwise my content tables says it has no content.</p>
  
  <p>I make the content table using:</p>
  
  <pre><code>object start = adoc.Content.End - 1;
  Range rangeForTOC = adoc.Range(ref start, ref missing);
  TableOfContents toc = adoc.TablesOfContents.Add(rangeForTOC, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing);
  adoc.TablesOfContents[1].TabLeader = WdTabLeader.wdTabLeaderDots;
  adoc.TablesOfContents.Format = WdTocFormat.wdTOCClassic;
  toc.Update();
  </code></pre>
  
  <p>Any ideas?</p>