Add Reflection Effect Creating Text with Reflection Effect The reflection effect adds a mirrored image beneath text, creating a polished and modern appearance. In IronWord, this effect is applied through the ReflectionEffect property of a TextEffect object, which can be customized or used with default settings. To implement a reflection effect, create a TextStyle and configure its TextEffect property with a Reflection instance. The Reflection class supports default initialization, which applies standard reflection parameters suitable for most use cases. For custom reflections, properties such as distance, blur, and transparency can be adjusted to fine-tune the appearance. After defining the text style, create a Run containing your TextContent and assign the configured style to the run. Use AddChild to add the run to a paragraph, maintaining the proper document hierarchy of Document → Paragraph → Run → TextContent. Finally, add the paragraph to the document to apply the reflection effect. Code Explanation Let's create a new Word document and add text with a reflection effect to it. Initially, a new WordDocument object named doc is created. A TextStyle object is then instantiated and configured to include a reflection effect by setting its TextEffect property to a new Reflection object. To add the styled text with the reflection effect, a Paragraph is created, then a Run object is created containing TextContent with "Hello World". The TextStyle is assigned to the Run, applying the reflection effect. The Run is added to the Paragraph using AddChild, and the Paragraph is added to the document. This follows the document hierarchy: Document → Paragraph → Run → TextContent. Finally, the document is saved. Explore Document Elements in IronWord tutorials. Related Docs Links View on Github Related Tutorial Related How-To Guide Class Documentation Download IronWord DLL Report an Issue on this page Ready to Get Started? Nuget Downloads 34,681 | Version: 2026.3 just released Start Free Trial Free NuGet Download Total downloads: 34,681 View Licenses Still Scrolling? Want proof fast? PM > Install-Package IronWord run a sample watch your data become a Word doc. Free NuGet Download Total downloads: 34,681 View Licenses
All your questions are answered to make sure you have all the information you need. (No commitment whatsoever.)