title: What is a Paragraph (Microsoft.Office.Interop.Word.Paragraph)
body: <p>What exactly is a paragraph in the context of <code>Microsoft.Office.Interop.Word</code>? I believe it is more than what the Office Word app itself considers a paragraph because the paragraphs count from the app is less than the paragraphs count returned by the <code>Microsoft.Office.Interop.Word.Paragraphs</code> collection. Any link that explains this will be appreciated.</p>
  
  <p><strong>UPDATE!</strong></p>
  
  <p>For example, the Microsoft Word App paragraph count (returned by clicking the word count info on the status bar) shows <em>40 paragraphs</em> in the document as shown in the image below (with a red arrow pointing to the count).</p>
  
  <p><a href="https://i.stack.imgur.com/lc539.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lc539.png" alt="Paragraph count gotten inside microsoft Word application"></a></p>
  
  <p>The paragraph count gotten using the c# programming code in Word VSTO Add in on the other hand returns 52 paragraphs. Then every empty space (new line break without a text) added to the document (by pressing the ENTER button on the keyboard) counts as an increase in the number of paragraphs that gets returned here but that of the Word Application remains constant at 40 paragraphs. The image below shows the paragraphs count in the Visual Studio <code>System.Diagnostics.Debug.WriteLine</code> output.</p>
  
  <p><a href="https://i.stack.imgur.com/0ryRx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0ryRx.png" alt="Paragraphs count shown with the yellow arrow and how it increases with every empty space added"></a></p>
  
  <p>The code used in getting the paragraph count is:</p>
  
  <pre><code>Word.Document myDoc = Globals.ThisAddIn.Application.ActiveDocument;
          Word.Paragraphs paragraphs = myDoc.Paragraphs;
          int numberOfParagraphs = paragraphs.Count;
          System.Diagnostics.Debug.WriteLine("This is the number of paragraphs returned: " + numberOfParagraphs);
  </code></pre>
  
  <p>It is based on this that I need a complete understanding of which elements from the document a <code>Microsoft.Office.Interop.Word.Paragraphs</code>collection actually represents; especially those that are not normally counted as paragraphs by the Microsoft word application.  </p>