com.aspose.words
Class TextDmlEffect

java.lang.Object
    extended by com.aspose.words.TextDmlEffect

public class TextDmlEffect 
extends java.lang.Object

Utility class containing constants. Dml text effect for text runs.

Example:

Shows how to check if a run displays a DrawingML text effect.
Document doc = new Document(getMyDir() + "DrawingML text effects.docx");

RunCollection runs = doc.getFirstSection().getBody().getFirstParagraph().getRuns();

Assert.assertTrue(runs.get(0).getFont().hasDmlEffect(TextDmlEffect.SHADOW));
Assert.assertTrue(runs.get(1).getFont().hasDmlEffect(TextDmlEffect.SHADOW));
Assert.assertTrue(runs.get(2).getFont().hasDmlEffect(TextDmlEffect.REFLECTION));
Assert.assertTrue(runs.get(3).getFont().hasDmlEffect(TextDmlEffect.EFFECT_3_D));
Assert.assertTrue(runs.get(4).getFont().hasDmlEffect(TextDmlEffect.FILL));

Field Summary
static final intGLOW = 0
           Glow effect, in which a color blurred outline is added outside the edges of the object.
static final intFILL = 1
           Fill overlay effect.
static final intSHADOW = 2
           Shadow effect.
static final intOUTLINE = 3
           Outline effect.
static final intEFFECT_3_D = 4
           3D effect.
static final intREFLECTION = 5
           Reflection effect.
 

Field Detail

GLOW = 0

public static final int GLOW
Glow effect, in which a color blurred outline is added outside the edges of the object.

FILL = 1

public static final int FILL
Fill overlay effect.

SHADOW = 2

public static final int SHADOW
Shadow effect.

OUTLINE = 3

public static final int OUTLINE
Outline effect.

EFFECT_3_D = 4

public static final int EFFECT_3_D
3D effect.

REFLECTION = 5

public static final int REFLECTION
Reflection effect.

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.