反射効果を追加する 反射効果のあるテキストの作成 反射効果により、テキストの下に鏡像が追加され、洗練されたモダンな外観が生まれます。 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. カスタム反射の場合、距離、ぼかし、透明度などのプロパティを調整して外観を微調整できます。 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. 最後に、ドキュメントに段落を追加して、反射効果を適用します。 コードの説明 新しい Word ドキュメントを作成して、反射効果のあるテキストを追加しましょう。 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. これは、ドキュメント階層に従います: ドキュメント → 段落 → 実行 → TextContent。 最後に、ドキュメントが保存されます。 IronWord チュートリアルでドキュメント要素を調べます。 関連ドキュメントリンク GitHubで見る 関連チュートリアル 関連ハウツーガイド クラスドキュメンテーション IronWord DLLをダウンロード このページの問題を報告する 準備はできましたか? Nuget ダウンロード 35,581 | バージョン: 2026.3 リリース 無料トライアル NuGet 無料版 総ダウンロード数: 35,581 ライセンスを見る まだスクロールしていますか? すぐに証拠が欲しいですか? PM > Install-Package IronWord サンプルを実行する あなたのデータが Word ドキュメントになるのを見る。 NuGet 無料版 総ダウンロード数: 35,581 ライセンスを見る