title: Multiple heading styles using the same multilevel list style
body: <p>I'm trying to assign numbering to multiple heading styles in Word, so that I get content like the following:</p>
  
  <pre><code>6. &lt;Heading 1&gt;
  6.1. &lt;Heading 2&gt;
  6.1.1. &lt;Heading 3&gt;
  6.2. &lt;Heading 2&gt;
  6.2.1. &lt;Heading 3&gt;
  6.3. &lt;Heading 2&gt;
  </code></pre>
  
  <p>You can do this pretty easily in standard Word by using the second multilevel numbering style (ignoring 'None'), the one that looks like this:</p>
  
  <pre><code>1.
  1.1.
  1.1.1.
  </code></pre>
  
  <p>But I'm trying to do this dynamically, by applying the second multilevel numbering style in code, and it comes out like this:</p>
  
  <pre><code>6. &lt;Heading 1&gt;
  1.1 &lt;Heading 2&gt;
  1.1.1 &lt;Heading 3&gt;
  7. &lt;Heading 1&gt;
  1.2 &lt;Heading 2&gt;
  1.1.2 &lt;Heading 3&gt;
  </code></pre>
  
  <p>If I apply the second multilevel numbering style manually after this, it changes to the desired output.</p>
  
  <p>Here is my code (a bit simplified but not by much).</p>
  
  <pre><code>ListGallery gallery = doc.Application.ListGalleries[WdListGalleryType.wdOutlineNumberGallery];
  ListTemplate numberedTemplate = gallery.ListTemplates[2];
  for (int i = 1; i &lt; 10; i++)
  {
    Style style = doc.Styles["Heading " + i];
    style.LinkToListTemplate(numberedTemplate, i);
  }
  </code></pre>