public class TextDmlEffect
extends java.lang.Object
Examples:
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));
| Modifier and Type | Field and Description |
|---|---|
static int |
EFFECT_3_D
3D effect.
|
static int |
FILL
Fill overlay effect.
|
static int |
GLOW
Glow effect, in which a color blurred outline is added outside the edges of the object.
|
static int |
length |
static int |
OUTLINE
Outline effect.
|
static int |
REFLECTION
Reflection effect.
|
static int |
SHADOW
Shadow effect.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
fromName(java.lang.String textDmlEffectName) |
static java.lang.String |
getName(int textDmlEffect) |
static int[] |
getValues() |
static java.lang.String |
toString(int textDmlEffect) |
public static int GLOW
public static int FILL
public static int SHADOW
public static int OUTLINE
public static int EFFECT_3_D
public static int REFLECTION
public static int length