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