Skip to content

Commit 14c5b64

Browse files
committed
Addressed the feedback
1 parent 9d0b2bb commit 14c5b64

1 file changed

Lines changed: 13 additions & 18 deletions

File tree

  • Paragraphs/Change-bullet-color-and-symbol-in-list/.NET/Change-bullet-color-and-symbol-in-list

Paragraphs/Change-bullet-color-and-symbol-in-list/.NET/Change-bullet-color-and-symbol-in-list/Program.cs

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,19 @@
22
using Syncfusion.DocIO.DLS;
33
using Syncfusion.Drawing;
44

5-
class Program
5+
6+
//Load the input Word document.
7+
using (WordDocument document = new WordDocument(@"Data/Input.docx", FormatType.Docx))
68
{
7-
static void Main(string[] args)
8-
{
9-
//Load the input Word document.
10-
using (WordDocument document = new WordDocument(@"Data/Input.docx", FormatType.Docx))
11-
{
12-
//Access the list style in a Word document.
13-
ListStyle style = document.ListStyles[0];
14-
WListLevel levelOne = style.Levels[0];
15-
//Define the character and pattern for level 1.
16-
levelOne.PatternType = ListPatternType.Bullet;
17-
levelOne.BulletCharacter = "\u0076";
18-
levelOne.CharacterFormat.FontName = "Wingdings";
19-
levelOne.CharacterFormat.TextColor = Color.Red;
20-
//Save the Word document.
21-
document.Save(@"Output/Sample.docx", FormatType.Docx);
22-
}
23-
}
9+
//Access the list style in a Word document.
10+
ListStyle style = document.ListStyles[0];
11+
WListLevel levelOne = style.Levels[0];
12+
//Define the character and pattern for level 1.
13+
levelOne.PatternType = ListPatternType.Bullet;
14+
levelOne.BulletCharacter = "\u0076";
15+
levelOne.CharacterFormat.FontName = "Wingdings";
16+
levelOne.CharacterFormat.TextColor = Color.Red;
17+
//Save the Word document.
18+
document.Save(@"Output/Sample.docx", FormatType.Docx);
2419
}
2520

0 commit comments

Comments
 (0)