diff --git a/Paragraphs/Convert-bullet-to-numbered-list/.NET/.vs/Change-bullet-symbol-in-list/DesignTimeBuild/.dtbcache.v2 b/Paragraphs/Convert-bullet-to-numbered-list/.NET/.vs/Change-bullet-symbol-in-list/DesignTimeBuild/.dtbcache.v2 new file mode 100644 index 000000000..2c4df6b00 Binary files /dev/null and b/Paragraphs/Convert-bullet-to-numbered-list/.NET/.vs/Change-bullet-symbol-in-list/DesignTimeBuild/.dtbcache.v2 differ diff --git a/Paragraphs/Convert-bullet-to-numbered-list/.NET/.vs/Change-bullet-symbol-in-list/FileContentIndex/c2b507c6-6cad-498f-bd56-4adbba43e360.vsidx b/Paragraphs/Convert-bullet-to-numbered-list/.NET/.vs/Change-bullet-symbol-in-list/FileContentIndex/c2b507c6-6cad-498f-bd56-4adbba43e360.vsidx new file mode 100644 index 000000000..ff01e710c Binary files /dev/null and b/Paragraphs/Convert-bullet-to-numbered-list/.NET/.vs/Change-bullet-symbol-in-list/FileContentIndex/c2b507c6-6cad-498f-bd56-4adbba43e360.vsidx differ diff --git a/Paragraphs/Convert-bullet-to-numbered-list/.NET/.vs/Change-bullet-symbol-in-list/v18/.futdcache.v2 b/Paragraphs/Convert-bullet-to-numbered-list/.NET/.vs/Change-bullet-symbol-in-list/v18/.futdcache.v2 new file mode 100644 index 000000000..ef3f63808 Binary files /dev/null and b/Paragraphs/Convert-bullet-to-numbered-list/.NET/.vs/Change-bullet-symbol-in-list/v18/.futdcache.v2 differ diff --git a/Paragraphs/Convert-bullet-to-numbered-list/.NET/.vs/Change-bullet-symbol-in-list/v18/.suo b/Paragraphs/Convert-bullet-to-numbered-list/.NET/.vs/Change-bullet-symbol-in-list/v18/.suo new file mode 100644 index 000000000..71b30699c Binary files /dev/null and b/Paragraphs/Convert-bullet-to-numbered-list/.NET/.vs/Change-bullet-symbol-in-list/v18/.suo differ diff --git a/Paragraphs/Convert-bullet-to-numbered-list/.NET/.vs/Change-bullet-symbol-in-list/v18/DocumentLayout.json b/Paragraphs/Convert-bullet-to-numbered-list/.NET/.vs/Change-bullet-symbol-in-list/v18/DocumentLayout.json new file mode 100644 index 000000000..ea4b32e97 --- /dev/null +++ b/Paragraphs/Convert-bullet-to-numbered-list/.NET/.vs/Change-bullet-symbol-in-list/v18/DocumentLayout.json @@ -0,0 +1,37 @@ +{ + "Version": 1, + "WorkspaceRootPath": "D:\\KB\\DocIO-Examples\\Paragraphs\\Change-bullet-symbol-in-list\\.NET\\", + "Documents": [ + { + "AbsoluteMoniker": "D:0:0:{C17B90BC-F559-456B-B189-90B53FF6CDD4}|Change-bullet-symbol-in-list\\Change-bullet-symbol-in-list.csproj|d:\\kb\\docio-examples\\paragraphs\\change-bullet-symbol-in-list\\.net\\change-bullet-symbol-in-list\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{C17B90BC-F559-456B-B189-90B53FF6CDD4}|Change-bullet-symbol-in-list\\Change-bullet-symbol-in-list.csproj|solutionrelative:change-bullet-symbol-in-list\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + } + ], + "DocumentGroupContainers": [ + { + "Orientation": 0, + "VerticalTabListWidth": 256, + "DocumentGroups": [ + { + "DockedWidth": 200, + "SelectedChildIndex": 0, + "Children": [ + { + "$type": "Document", + "DocumentIndex": 0, + "Title": "Program.cs", + "DocumentMoniker": "D:\\KB\\DocIO-Examples\\Paragraphs\\Change-bullet-symbol-in-list\\.NET\\Change-bullet-symbol-in-list\\Program.cs", + "RelativeDocumentMoniker": "Change-bullet-symbol-in-list\\Program.cs", + "ToolTip": "D:\\KB\\DocIO-Examples\\Paragraphs\\Change-bullet-symbol-in-list\\.NET\\Change-bullet-symbol-in-list\\Program.cs", + "RelativeToolTip": "Change-bullet-symbol-in-list\\Program.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAABMAAAAwAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-08-24T06:30:31.773Z", + "EditorCaption": "" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/Paragraphs/Convert-bullet-to-numbered-list/.NET/.vs/ProjectEvaluation/change-bullet-symbol-in-list.metadata.v10.bin b/Paragraphs/Convert-bullet-to-numbered-list/.NET/.vs/ProjectEvaluation/change-bullet-symbol-in-list.metadata.v10.bin new file mode 100644 index 000000000..6c1866dd9 Binary files /dev/null and b/Paragraphs/Convert-bullet-to-numbered-list/.NET/.vs/ProjectEvaluation/change-bullet-symbol-in-list.metadata.v10.bin differ diff --git a/Paragraphs/Convert-bullet-to-numbered-list/.NET/.vs/ProjectEvaluation/change-bullet-symbol-in-list.projects.v10.bin b/Paragraphs/Convert-bullet-to-numbered-list/.NET/.vs/ProjectEvaluation/change-bullet-symbol-in-list.projects.v10.bin new file mode 100644 index 000000000..c16c64c10 Binary files /dev/null and b/Paragraphs/Convert-bullet-to-numbered-list/.NET/.vs/ProjectEvaluation/change-bullet-symbol-in-list.projects.v10.bin differ diff --git a/Paragraphs/Convert-bullet-to-numbered-list/.NET/.vs/ProjectEvaluation/change-bullet-symbol-in-list.strings.v10.bin b/Paragraphs/Convert-bullet-to-numbered-list/.NET/.vs/ProjectEvaluation/change-bullet-symbol-in-list.strings.v10.bin new file mode 100644 index 000000000..31f85a7d7 Binary files /dev/null and b/Paragraphs/Convert-bullet-to-numbered-list/.NET/.vs/ProjectEvaluation/change-bullet-symbol-in-list.strings.v10.bin differ diff --git a/Paragraphs/Convert-bullet-to-numbered-list/.NET/Convert-bullet-to-numbered-list.sln b/Paragraphs/Convert-bullet-to-numbered-list/.NET/Convert-bullet-to-numbered-list.sln new file mode 100644 index 000000000..30edef02e --- /dev/null +++ b/Paragraphs/Convert-bullet-to-numbered-list/.NET/Convert-bullet-to-numbered-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}") = "Convert-bullet-to-numbered-list", "Convert-bullet-to-numbered-list\Convert-bullet-to-numbered-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/Convert-bullet-to-numbered-list/.NET/Convert-bullet-to-numbered-list/Convert-bullet-to-numbered-list.csproj b/Paragraphs/Convert-bullet-to-numbered-list/.NET/Convert-bullet-to-numbered-list/Convert-bullet-to-numbered-list.csproj new file mode 100644 index 000000000..49ee89079 --- /dev/null +++ b/Paragraphs/Convert-bullet-to-numbered-list/.NET/Convert-bullet-to-numbered-list/Convert-bullet-to-numbered-list.csproj @@ -0,0 +1,22 @@ + + + + Exe + net8.0 + Convert_bullet_to_numbered_list + + + + + + + + + Always + + + Always + + + + diff --git a/Paragraphs/Convert-bullet-to-numbered-list/.NET/Convert-bullet-to-numbered-list/Data/Input.docx b/Paragraphs/Convert-bullet-to-numbered-list/.NET/Convert-bullet-to-numbered-list/Data/Input.docx new file mode 100644 index 000000000..ca4347acc Binary files /dev/null and b/Paragraphs/Convert-bullet-to-numbered-list/.NET/Convert-bullet-to-numbered-list/Data/Input.docx differ diff --git a/Paragraphs/Convert-bullet-to-numbered-list/.NET/Convert-bullet-to-numbered-list/Output/.gitkeep b/Paragraphs/Convert-bullet-to-numbered-list/.NET/Convert-bullet-to-numbered-list/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Convert-bullet-to-numbered-list/.NET/Convert-bullet-to-numbered-list/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Convert-bullet-to-numbered-list/.NET/Convert-bullet-to-numbered-list/Program.cs b/Paragraphs/Convert-bullet-to-numbered-list/.NET/Convert-bullet-to-numbered-list/Program.cs new file mode 100644 index 000000000..cb86bc4a7 --- /dev/null +++ b/Paragraphs/Convert-bullet-to-numbered-list/.NET/Convert-bullet-to-numbered-list/Program.cs @@ -0,0 +1,17 @@ +using Syncfusion.DocIO; +using Syncfusion.DocIO.DLS; +using System.Collections.Generic; + +string inputFile = @"../../../Data/Input.docx"; +string outputFile = @"../../../Output/Ouput.docx"; + +WordDocument wordDocument = new WordDocument(inputFile, FormatType.Docx); +// Replace {list-id} with the bullet list's id you want to target. +List bullets = wordDocument.FindAllItemsByProperty(EntityType.Paragraph,"ListFormat.ListType","Bulleted"); + +foreach (Entity entity in bullets) + (entity as WParagraph).ListFormat.ApplyDefNumberedStyle(); + +wordDocument.Save(outputFile); +wordDocument.Close(); +