グロー効果を追加 テキストにグロー効果を追加する Applying a glow effect to text in IronWord is accomplished by configuring the TextEffect property of a TextStyle object. グロー効果は、テキストの周囲に明るい境界線を作成し、色と半径のプロパティをカスタマイズして外観を制御できます。 To create a glow effect, instantiate a TextStyle and assign a TextEffect object with a configured Glow instance. The Glow object accepts properties like GlowColor to specify the color of the glow and GlowRadius to control the spread of the effect. 半径の値が大きいほど拡散した輝きが増し、値が小さいほどテキストの周囲に密集したハローが作成されます。 After configuring the text style, create a Run object containing the desired TextContent and assign the configured style to the Run. Use AddChild to add the styled run to a paragraph, then add the paragraph to the document. これは、ドキュメント階層に従います: ドキュメント → 段落 → 実行 → TextContent。 コードの説明 上記のコードスニペットは、新しいWord文書を作成し、グロー効果付きでテキストスタイルを適用する方法を示しています。 First, a new Word document is instantiated and stored in the variable doc. Then, a new TextStyle object named textStyle is created. This text style is configured to include a glow effect by initializing a TextEffect object with specific settings. To add the styled text with the glow effect, a Paragraph is created, then a Run object is created containing TextContent with "Hello World". The textStyle is assigned to the Run, which applies the glow effect. The Run is added to the Paragraph using AddChild, and finally the Paragraph is added to the document. この複数ステップのアプローチは、ドキュメント階層(ドキュメント → 段落 → 実行 → TextContent)に従います。 最後に、そのWord文書が新しいファイルとしてエクスポートされます。 他の例やデモについては、次の記事にアクセスしてください: テキストにグロー効果を追加する方法。 IronWordのドキュメント要素について詳しく学ぶ 関連ドキュメントリンク GitHubで見る 関連チュートリアル 関連ハウツーガイド クラスドキュメンテーション IronWord DLLをダウンロード このページの問題を報告する 準備はできましたか? Nuget ダウンロード 35,581 | バージョン: 2026.3 リリース 無料トライアル NuGet 無料版 総ダウンロード数: 35,581 ライセンスを見る まだスクロールしていますか? すぐに証拠が欲しいですか? PM > Install-Package IronWord サンプルを実行する あなたのデータが Word ドキュメントになるのを見る。 NuGet 無料版 総ダウンロード数: 35,581 ライセンスを見る