Add Shadow Effect
A shadow effect can be added to text within a Word document with just a few lines of codes. For completeness, let's first initialize a new WordDocument instance called doc. Then, a TextStyle object is created and configured to incorporate a shadow effect by assigning the Shadow.OuterShadow1 static named instance to the TextEffect property. The text "Hello World" is added to the document using the configured textStyle. Finally, export the Word document.