Skip to content

Commit 40a9fc9

Browse files
committed
Addressed the feedback
1 parent d105207 commit 40a9fc9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • Paragraphs/Get-heading-list-value/.NET/Get-heading-list-value

Paragraphs/Get-heading-list-value/.NET/Get-heading-list-value/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ static void Main(string[] args)
1919
document.GetText();
2020
//Find all paragraphs with the style 'Heading 3' in the Word document.
2121
List<Entity> headingParagraphs = document.FindAllItemsByProperty(EntityType.Paragraph, "StyleName", "Heading 3");
22-
if (headingParagraphs.Count == 0)
22+
if (headingParagraphs == null)
2323
Console.WriteLine("No paragraphs with the style 'Heading 3' found.");
2424
else
2525
{

0 commit comments

Comments
 (0)