title: Generating multilevel list in Word using interop C#
body: <p>What I want:</p>
  
  <blockquote>
    <p><ol>
    <li>Heading 1</p>
    
    <blockquote>
      <p>1.1. Heading 2</p>
      
      <blockquote>
  <pre><code>   1.1.1. Heading 3
  </code></pre>
      </blockquote>
      
      <p>1.2. Heading 2</li>
      <li>Heading 1</li>
      </ol></p>
    </blockquote>
  </blockquote>
  
  <p>and so on.</p>
  
  <p>I see that there exists a list style that accomplishes this, but I can't figure out how to code it.</p>
  
  <pre><code>Word.Range rng = wordDoc.Paragraphs.Add().Range;
  rng.ListFormat.ApplyListTemplate(...);
  </code></pre>
  
  <p>I'm not sure how to fill the arguments of ApplyListTemplate(), or if that's even the correct approach. I can't find any actual examples of any ListTemplate object, only references to them.</p>
  
  <p>Reference here: <a href="http://msdn.microsoft.com/en-us/library/microsoft.office.interop.word.listformat.applylisttemplate(v=office.15).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/microsoft.office.interop.word.listformat.applylisttemplate(v=office.15).aspx</a></p>