diff --git a/Paragraphs/Change-bullet-color-and-symbol-in-list/.NET/Change-bullet-color-and-symbol-in-list.sln b/Paragraphs/Change-bullet-color-and-symbol-in-list/.NET/Change-bullet-color-and-symbol-in-list.sln new file mode 100644 index 000000000..c50d7ddba --- /dev/null +++ b/Paragraphs/Change-bullet-color-and-symbol-in-list/.NET/Change-bullet-color-and-symbol-in-list.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31911.196 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Change-bullet-color-and-symbol-in-list", "Change-bullet-color-and-symbol-in-list\Change-bullet-color-and-symbol-in-list.csproj", "{C17B90BC-F559-456B-B189-90B53FF6CDD4}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C17B90BC-F559-456B-B189-90B53FF6CDD4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C17B90BC-F559-456B-B189-90B53FF6CDD4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C17B90BC-F559-456B-B189-90B53FF6CDD4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C17B90BC-F559-456B-B189-90B53FF6CDD4}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {EF357FC6-E9E5-4E3C-B932-43F727BE1DE4} + EndGlobalSection +EndGlobal diff --git a/Paragraphs/Change-bullet-color-and-symbol-in-list/.NET/Change-bullet-color-and-symbol-in-list/Change-bullet-color-and-symbol-in-list.csproj b/Paragraphs/Change-bullet-color-and-symbol-in-list/.NET/Change-bullet-color-and-symbol-in-list/Change-bullet-color-and-symbol-in-list.csproj new file mode 100644 index 000000000..8c0342d71 --- /dev/null +++ b/Paragraphs/Change-bullet-color-and-symbol-in-list/.NET/Change-bullet-color-and-symbol-in-list/Change-bullet-color-and-symbol-in-list.csproj @@ -0,0 +1,22 @@ + + + + Exe + net8.0 + Change_bullet_color_and_symbol_in_list + + + + + + + + + Always + + + Always + + + + diff --git a/Paragraphs/Change-bullet-color-and-symbol-in-list/.NET/Change-bullet-color-and-symbol-in-list/Data/Input.docx b/Paragraphs/Change-bullet-color-and-symbol-in-list/.NET/Change-bullet-color-and-symbol-in-list/Data/Input.docx new file mode 100644 index 000000000..ca4347acc Binary files /dev/null and b/Paragraphs/Change-bullet-color-and-symbol-in-list/.NET/Change-bullet-color-and-symbol-in-list/Data/Input.docx differ diff --git a/Paragraphs/Change-bullet-color-and-symbol-in-list/.NET/Change-bullet-color-and-symbol-in-list/Input.docx b/Paragraphs/Change-bullet-color-and-symbol-in-list/.NET/Change-bullet-color-and-symbol-in-list/Input.docx new file mode 100644 index 000000000..ca4347acc Binary files /dev/null and b/Paragraphs/Change-bullet-color-and-symbol-in-list/.NET/Change-bullet-color-and-symbol-in-list/Input.docx differ diff --git a/Paragraphs/Change-bullet-color-and-symbol-in-list/.NET/Change-bullet-color-and-symbol-in-list/Output/.gitkeep b/Paragraphs/Change-bullet-color-and-symbol-in-list/.NET/Change-bullet-color-and-symbol-in-list/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Change-bullet-color-and-symbol-in-list/.NET/Change-bullet-color-and-symbol-in-list/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Change-bullet-color-and-symbol-in-list/.NET/Change-bullet-color-and-symbol-in-list/Program.cs b/Paragraphs/Change-bullet-color-and-symbol-in-list/.NET/Change-bullet-color-and-symbol-in-list/Program.cs new file mode 100644 index 000000000..0db2eed8b --- /dev/null +++ b/Paragraphs/Change-bullet-color-and-symbol-in-list/.NET/Change-bullet-color-and-symbol-in-list/Program.cs @@ -0,0 +1,20 @@ +using Syncfusion.DocIO; +using Syncfusion.DocIO.DLS; +using Syncfusion.Drawing; + + +//Load the input Word document. +using (WordDocument document = new WordDocument(@"Data/Input.docx", FormatType.Docx)) +{ + //Access the list style in a Word document. + ListStyle style = document.ListStyles[0]; + WListLevel levelOne = style.Levels[0]; + //Define the character and pattern for level 1. + levelOne.PatternType = ListPatternType.Bullet; + levelOne.BulletCharacter = "\u0076"; + levelOne.CharacterFormat.FontName = "Wingdings"; + levelOne.CharacterFormat.TextColor = Color.Red; + //Save the Word document. + document.Save(@"Output/Sample.docx", FormatType.Docx); +} +