java.lang.Object
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 int | GLOW = 0 | |
|
Glow effect, in which a color blurred outline is added outside the edges of the object.
|
static final int | FILL = 1 | |
|
Fill overlay effect.
|
static final int | SHADOW = 2 | |
|
Shadow effect.
|
static final int | OUTLINE = 3 | |
|
Outline effect.
|
static final int | EFFECT_3_D = 4 | |
|
3D effect.
|
static final int | REFLECTION = 5 | |
|
Reflection effect.
|
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.