Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Excerpt

Returns an int representing the number of paragraphs in this document.

Signature
C#
C#

 public int NumParagraphs{ get; }
Signature
vb.net
vb.net

Public ReadOnly Property NumParagraphs() As Integer
Remarks

MS Word equivalent: File menu > Properties > Statistics tab > Statistics listbox > Paragraphs:

Example
Code Block
csharp
csharp
titleC#
            int numParagraphs = oDocument.NumParagraphs;
        
Code Block
vb.net
vb.net
titlevb.net
            Dim numParagraphs As Integer = oDocument.NumParagraphs