TextDmlEffect

TextDmlEffect enumeration

Dml text effect for text runs.

public enum TextDmlEffect

Values

NameValueDescription
Glow0Glow effect, in which a color blurred outline is added outside the edges of the object.
Fill1Fill overlay effect.
Shadow2Shadow effect.
Outline3Outline effect.
Effect3D43D effect.
Reflection5Reflection effect.

Examples

Shows how to check if a run displays a DrawingML text effect.

Document doc = new Document(MyDir + "DrawingML text effects.docx");

RunCollection runs = doc.FirstSection.Body.FirstParagraph.Runs;

Assert.True(runs[0].Font.HasDmlEffect(TextDmlEffect.Shadow));
Assert.True(runs[1].Font.HasDmlEffect(TextDmlEffect.Shadow));
Assert.True(runs[2].Font.HasDmlEffect(TextDmlEffect.Reflection));
Assert.True(runs[3].Font.HasDmlEffect(TextDmlEffect.Effect3D));
Assert.True(runs[4].Font.HasDmlEffect(TextDmlEffect.Fill));

See Also