添加渐变效果 The above code demonstrates how to apply a gradient effect to text. First, it creates a new Word document. Then, it creates a TextStyle object and configures it to use a gradient effect by assigning the Gradient.DefaultGray preset to the GradientEffect property. This configured TextStyle is then applied to the text "Hello World" which is added to the document. Finally, the new Word document is exported. For more examples and demonstrations, please navigate to the following article: How to Add Gradient Effect to Text. Explore More Word Document Element Tutorials Here 相关文档链接 在Github上查看 相关教程 相关操作指南 类文档 下载IronWord DLL 报告此页面的问题 准备开始了吗? Nuget 下载 25,807 | 版本: 2025.11 刚刚发布 免费 NuGet 下载 总下载量:25,807 查看许可证