TextEffectFormat
Inheritance: java.lang.Object
public class TextEffectFormat
Contains properties and methods that apply to WordArt objects.
Example
//Instantiating a Workbook object
Workbook workbook = new Workbook();
ShapeCollection shapes = workbook.getWorksheets().get(0).getShapes();
shapes.addTextEffect(MsoPresetTextEffect.TEXT_EFFECT_1, "Aspose", "Arial", 30, false, false, 0, 0, 0, 0, 100, 200);
TextEffectFormat textEffectFormat = shapes.get(0).getTextEffect();
textEffectFormat.setTextEffect(MsoPresetTextEffect.TEXT_EFFECT_10);
workbook.save("Book1.xls");
Methods
Method | Description |
---|---|
equals(Object arg0) | |
getClass() | |
getFontBold() | Indicates whether font is bold. |
getFontItalic() | Indicates whether font is italic. |
getFontName() | The name of the font used in the WordArt. |
getFontSize() | The size (in points) of the font used in the WordArt. |
getPresetShape() | Gets the preset shape type. |
getRotatedChars() | If true,characters in the specified WordArt are rotated 90 degrees relative to the WordArt’s bounding shape. |
getText() | The text in the WordArt. |
hashCode() | |
notify() | |
notifyAll() | |
setFontBold(boolean value) | Indicates whether font is bold. |
setFontItalic(boolean value) | Indicates whether font is italic. |
setFontName(String value) | The name of the font used in the WordArt. |
setFontSize(int value) | The size (in points) of the font used in the WordArt. |
setPresetShape(int value) | Sets the preset shape type. |
setRotatedChars(boolean value) | If true,characters in the specified WordArt are rotated 90 degrees relative to the WordArt’s bounding shape. |
setText(String value) | The text in the WordArt. |
setTextEffect(int effect) | Sets the preset text effect. |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getFontBold()
public boolean getFontBold()
Indicates whether font is bold.
Returns: boolean
getFontItalic()
public boolean getFontItalic()
Indicates whether font is italic.
Returns: boolean
getFontName()
public String getFontName()
The name of the font used in the WordArt.
Returns: java.lang.String
getFontSize()
public int getFontSize()
The size (in points) of the font used in the WordArt.
Returns: int
getPresetShape()
public int getPresetShape()
Gets the preset shape type.
Returns: int
getRotatedChars()
public boolean getRotatedChars()
If true,characters in the specified WordArt are rotated 90 degrees relative to the WordArt’s bounding shape.
Returns: boolean
getText()
public String getText()
The text in the WordArt.
Returns: java.lang.String
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
setFontBold(boolean value)
public void setFontBold(boolean value)
Indicates whether font is bold.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setFontItalic(boolean value)
public void setFontItalic(boolean value)
Indicates whether font is italic.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setFontName(String value)
public void setFontName(String value)
The name of the font used in the WordArt.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setFontSize(int value)
public void setFontSize(int value)
The size (in points) of the font used in the WordArt.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setPresetShape(int value)
public void setPresetShape(int value)
Sets the preset shape type.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setRotatedChars(boolean value)
public void setRotatedChars(boolean value)
If true,characters in the specified WordArt are rotated 90 degrees relative to the WordArt’s bounding shape.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setText(String value)
public void setText(String value)
The text in the WordArt.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setTextEffect(int effect)
public void setTextEffect(int effect)
Sets the preset text effect.
Parameters:
Parameter | Type | Description |
---|---|---|
effect | int | MsoPresetTextEffect. The preset text effect. |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |