How to Add Glow Effect to Text

The glow effect on text is a visual effect that creates a glowing aura around the characters. This effect makes the text appear as if it is emitting light, creating a soft, luminous outline that can enhance readability and draw attention.

Get started with IronWord

Start using IronWord in your project today with a free trial.

First Step:
green arrow pointer


Add Glow Effect

To specify the glow effect for the text, you can start by creating and configuring the Glow object. Then, create the TextEffect object from this Glow object. Finally, assign the TextEffect to the TextEffect property of the text.

:path=/static-assets/word/content-code-examples/how-to/text-effect-glow-effect.cs
using IronWord;
using IronWord.Models;

// Create new Word document
WordDocument doc = new WordDocument();

// Create and configure text style
TextStyle textStyle = new TextStyle();
textStyle.TextEffect = new TextEffect()
{
    GlowEffect = new Glow()
    {
        GlowColor = IronWord.Models.Color.Aqua,
        GlowRadius = 10,
    },
};

// Add text with style
doc.AddText("Hello World").Style = textStyle;

// Export new Word document
doc.SaveAs("glowEffect.docx");
Imports IronWord
Imports IronWord.Models

' Create new Word document
Private doc As New WordDocument()

' Create and configure text style
Private textStyle As New TextStyle()
textStyle.TextEffect = New TextEffect() With {
	.GlowEffect = New Glow() With {
		.GlowColor = IronWord.Models.Color.Aqua,
		.GlowRadius = 10
	}
}

' Add text with style
doc.AddText("Hello World").Style = textStyle

' Export new Word document
doc.SaveAs("glowEffect.docx")
VB   C#
Add glow effect

Glow Effect Properties

Below are all the glow effect properties and their descriptions:

  • GlowRadius : Gets or sets the radius of the glow effect. The glow radius is specified in points (1/72 inch).
  • GlowColor : Gets or sets the color of the glow effect.

Glow Effect Examples

Let's look at some more glow effect examples. The color of the glow effect can also accept ARGB values. The first value is alpha, which describes how opaque the color is.

Glow effect examples