TextDmlEffect

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

FieldDescription
EFFECT_3_D3D effect.
FILLFill overlay effect.
GLOWGlow effect, in which a color blurred outline is added outside the edges of the object.
OUTLINEOutline effect.
REFLECTIONReflection effect.
SHADOWShadow effect.
length

Methods

MethodDescription
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:

ParameterTypeDescription
textDmlEffectNamejava.lang.String

Returns: int

getName(int textDmlEffect)

public static String getName(int textDmlEffect)

Parameters:

ParameterTypeDescription
textDmlEffectint

Returns: java.lang.String

getValues()

public static int[] getValues()

Returns: int[]

toString(int textDmlEffect)

public static String toString(int textDmlEffect)

Parameters:

ParameterTypeDescription
textDmlEffectint

Returns: java.lang.String