Skip to content

Commit 7b761d5

Browse files
Changed the variable name to paragraph count
1 parent 1f57930 commit 7b761d5

File tree

1 file changed

+2
-2
lines changed
  • Word-document/Continue-numbering-different-styles/Continue-numbering-different-styles

1 file changed

+2
-2
lines changed

Word-document/Continue-numbering-different-styles/Continue-numbering-different-styles/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
// Initialize a variable to hold the list style from the destination document.
1717
ListStyle listStyle = null;
1818
// Iterate through the paragraphs in the last section of the destination document.
19-
int countOfParagraph = destinationDocument.LastSection.Paragraphs.Count;
20-
for (int i = countOfParagraph-1;i>=0;i--)
19+
int paragraphCount = destinationDocument.LastSection.Paragraphs.Count;
20+
for (int i = paragraphCount - 1; i >= 0; i--)
2121
{
2222
WParagraph paragraph = destinationDocument.LastSection.Paragraphs[i];
2323
if (paragraph.ListFormat.CurrentListStyle != null)

0 commit comments

Comments
 (0)