|
2 | 2 | using Syncfusion.DocIO.DLS; |
3 | 3 | using Syncfusion.Drawing; |
4 | 4 |
|
5 | | -class Program |
| 5 | + |
| 6 | +//Load the input Word document. |
| 7 | +using (WordDocument document = new WordDocument(@"Data/Input.docx", FormatType.Docx)) |
6 | 8 | { |
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); |
24 | 19 | } |
25 | 20 |
|
0 commit comments