You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Word-document/Insert-PageBreak-Before-Heading-Paragraphs/.NET/Insert-PageBreak-Before-Heading-Paragraphs/Program.cs
+31-27Lines changed: 31 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -13,41 +13,45 @@ public static void Main(string[] args)
13
13
14
14
if(entities==null)
15
15
{
16
-
Console.WriteLine("No paragraphs with the style 'Heading 1' found.");
17
-
return;
16
+
Console.WriteLine("No paragraphs with the style 'Heading 1' found.");
18
17
}
19
-
foreach(Entityentityinentities)
18
+
else
20
19
{
21
-
// Check if the entity is a paragraph
22
-
WParagraphparagraph=entityasWParagraph;
23
-
// Get the index of the current paragraph in its parent text body
0 commit comments