Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,11 @@ static void Main(string[] args)
Console.WriteLine("No paragraphs with the style 'Heading 3' found.");
else
{
foreach (Entity paragraph in headingParagraphs)
{
//Get the string that represents the appearance of list value of the paragraph.
if (paragraph is WParagraph)
Console.WriteLine((paragraph as WParagraph).ListString);
else
Console.WriteLine("The entity is not a WParagraph.");
foreach (Entity entity in headingParagraphs)
{
WParagraph paragraph = entity as WParagraph;
//Get the heading number and the heading text together.
Console.WriteLine(paragraph.ListString + paragraph.Text);
}
}
//Pauses the console to display the output.
Expand Down
Loading