title: Get text under Paragraph programmatically
body: <p>I have a large word document which contains some headings. These headings have respectively one table as a child. (depicted in the screenshot)</p>
  
  <p><a href="https://i.stack.imgur.com/SCjeR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SCjeR.png" alt="enter image description here"></a></p>
  
  <p>Therefore I used the Microsoft Interop.Word library. My code looks like this. How can I get the children of a heading paragraph? Maybe there's a better way of doing this.</p>
  
  <pre><code>Application word = new Application();
  Document doc = new Document();
  object missing = System.Type.Missing;
  doc = word.Documents.Open(ref m_FileName,
          ref missing, ref missing, ref missing, ref missing,
          ref missing, ref missing, ref missing, ref missing,
          ref missing, ref missing, ref missing, ref missing,
          ref missing, ref missing, ref missing);
  
  foreach (Paragraph paragraph in doc.Paragraphs)
  {
      Style style = paragraph.get_Style() as Style;
      string text = paragraph.Range.Text;
      paragraph.Range.Tables // does not get the table under the paragraph
  }
  </code></pre>