From 8f6aa4f89afe9de598593773e6cea180f9db8c9d Mon Sep 17 00:00:00 2001 From: GOPINATHSF4767 Date: Wed, 11 Feb 2026 15:04:42 +0530 Subject: [PATCH] Added sample --- .../.NET/Set-Proofing-Language-to-Text.sln | 25 ++++++++++++++ .../Output/.gitkeep | 0 .../Output/Result.docx | Bin 0 -> 5350 bytes .../Set-Proofing-Language-to-Text/Program.cs | 32 ++++++++++++++++++ .../Set-Proofing-Language-to-Text.csproj | 19 +++++++++++ 5 files changed, 76 insertions(+) create mode 100644 Paragraphs/Set-Proofing-Language-to-Text/.NET/Set-Proofing-Language-to-Text.sln create mode 100644 Paragraphs/Set-Proofing-Language-to-Text/.NET/Set-Proofing-Language-to-Text/Output/.gitkeep create mode 100644 Paragraphs/Set-Proofing-Language-to-Text/.NET/Set-Proofing-Language-to-Text/Output/Result.docx create mode 100644 Paragraphs/Set-Proofing-Language-to-Text/.NET/Set-Proofing-Language-to-Text/Program.cs create mode 100644 Paragraphs/Set-Proofing-Language-to-Text/.NET/Set-Proofing-Language-to-Text/Set-Proofing-Language-to-Text.csproj diff --git a/Paragraphs/Set-Proofing-Language-to-Text/.NET/Set-Proofing-Language-to-Text.sln b/Paragraphs/Set-Proofing-Language-to-Text/.NET/Set-Proofing-Language-to-Text.sln new file mode 100644 index 000000000..2eaa46617 --- /dev/null +++ b/Paragraphs/Set-Proofing-Language-to-Text/.NET/Set-Proofing-Language-to-Text.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.14.36930.0 d17.14 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Set-Proofing-Language-to-Text", "Set-Proofing-Language-to-Text\Set-Proofing-Language-to-Text.csproj", "{7C5CEB8B-D847-4077-B7C2-AF16823EBB0F}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {7C5CEB8B-D847-4077-B7C2-AF16823EBB0F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7C5CEB8B-D847-4077-B7C2-AF16823EBB0F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7C5CEB8B-D847-4077-B7C2-AF16823EBB0F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7C5CEB8B-D847-4077-B7C2-AF16823EBB0F}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {A7CE16EB-FBE7-4F9D-9165-A05AB9562CF0} + EndGlobalSection +EndGlobal diff --git a/Paragraphs/Set-Proofing-Language-to-Text/.NET/Set-Proofing-Language-to-Text/Output/.gitkeep b/Paragraphs/Set-Proofing-Language-to-Text/.NET/Set-Proofing-Language-to-Text/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Paragraphs/Set-Proofing-Language-to-Text/.NET/Set-Proofing-Language-to-Text/Output/Result.docx b/Paragraphs/Set-Proofing-Language-to-Text/.NET/Set-Proofing-Language-to-Text/Output/Result.docx new file mode 100644 index 0000000000000000000000000000000000000000..3296457b2b8ff8e45268872a9ac3c1da698a4869 GIT binary patch literal 5350 zcmaJ_1z1$u+8(+)Wf19-ZbXo7kZvUeq(NqYp*u&AZUJEg=`QK+MnI6EK|z%6xZ^qZ zUeD#6|KIz0_B^xp^RE4@Z+-9ge(%yyK|v)2005W(ZitGB4um_D83h0UV*vm}h*1w` zS4(b7=NE2{R!(3ph@%5cZ^3Cngz%ayXiSM!G%^EQH|lwS+yi%_9JGta`SQd>aAmFh zMbn)wzsZ}=+KJ*$Q1va!>2GD_>j27cs_-_rO8geKx(haJJ7>1+-@m*B<4!i{qcf1Fh&HqGRd5 ze=cI3;eTEDZ5b>`^w9*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tyUGLa8d$K?exp^Hrv3e@=6FTYm{xuv`R zq)jh_P3|}_NroBa*;J6UYa_ur9b7hgK(keT)h}qc!mM8ob^AG!_q=8oS~iQ@U{&@Rvz<4mAPbf7VYUH(dvo)sBf4Q^ZCDt?X7*r?~A8Iufw6fkEK5Z;w zSKol5ofKc7No*|gDs@DMc>B`NDuCzSNfjeSMh zDkl0ENbh!FMM>221Zu(vnrJ`nTkjDk9Ux=dg2FO(l>AK}Fg*0sl4c3z4wfKUqR$lX z+(a~{e~(OT7Tvijf(}4LI*}kEV=UwB1V$W(nCf`CSb?7XVnt1Y6r#KkBJ#u&N?gxD zD6Q56s2fM4sQ9jAVeZW_Rs(zaq9d*WS$Q74&<+Q44#IzUds+7qZn|U*<$_d(sp7w2 zD%g<4jzBMksxj%CP|Ru(?%34!VJ3Y64D|S%)F?^j;z(#Q8E=B~NYluJ@`*{hxz4CS zLhXZ58+Xc2 zkLFR7D;W~+U5(3>s(>fZxI-UBQ7W@wd9SQdxw?~gYrXUvM`AC0&SPvfQGzVXHFim@ z6y>&y`}zXTX(b@JZb9NBsu$$`s<~r;wi`%rbjn-Ty0nZ^4IS}koD=nb8)%G~69&52 zNuhKY<>O4Z>XjWd3(Gz{$(t{RCh|&IV`O)EeJ@sksejw*4vq`t{f5`${)5ilh2Jgbzu`y-1NL8;{C9D`i@sYbf1}qB z=>M;9-ks@gb@@Hh1)>-HORc#Jyi2~{KvIOz{{s~@RL~Gx0{~zl?k9*^7DxQ+-@gD8 C$UYAM literal 0 HcmV?d00001 diff --git a/Paragraphs/Set-Proofing-Language-to-Text/.NET/Set-Proofing-Language-to-Text/Program.cs b/Paragraphs/Set-Proofing-Language-to-Text/.NET/Set-Proofing-Language-to-Text/Program.cs new file mode 100644 index 000000000..cd4d0d3c1 --- /dev/null +++ b/Paragraphs/Set-Proofing-Language-to-Text/.NET/Set-Proofing-Language-to-Text/Program.cs @@ -0,0 +1,32 @@ +using Syncfusion.DocIO; +using Syncfusion.DocIO.DLS; +using Syncfusion.Office; +using System.IO; + +namespace Set_Proofing_Language_to_Text +{ + class Program + { + static void Main(string[] args) + { + //Creates a new Word document. + using (WordDocument document = new WordDocument()) + { + //Add new section to the document. + IWSection section = document.AddSection(); + //Add new paragraph to the section. + IWParagraph paragraph = section.AddParagraph(); + //Add new text to the paragraph. + IWTextRange text = paragraph.AppendText("Adventure Works Cycles, the fictitious company on which the AdventureWorks sample databases are based, is a large, multinational manufacturing company"); + //Set language identifier. + text.CharacterFormat.LocaleIdASCII = (short)LocaleIDs.pt_PT; + //Creates file stream. + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + { + //Saves the Word document to file stream. + document.Save(outputFileStream, FormatType.Docx); + } + } + } + } +} diff --git a/Paragraphs/Set-Proofing-Language-to-Text/.NET/Set-Proofing-Language-to-Text/Set-Proofing-Language-to-Text.csproj b/Paragraphs/Set-Proofing-Language-to-Text/.NET/Set-Proofing-Language-to-Text/Set-Proofing-Language-to-Text.csproj new file mode 100644 index 000000000..a124bcdff --- /dev/null +++ b/Paragraphs/Set-Proofing-Language-to-Text/.NET/Set-Proofing-Language-to-Text/Set-Proofing-Language-to-Text.csproj @@ -0,0 +1,19 @@ + + + + Exe + net8.0 + Set-Proofing-Language-to-Text + + + + + + + + + Always + + + +