Example:
# Instantiating a Workbook object
workbook = Workbook()
shapes = workbook.getWorksheets().get(0).getShapes()
shapes.addTextEffect(MsoPresetTextEffect.TEXT_EFFECT_1, "Aspose", "Arial", 30, False, False, 0, 0, 0, 0, 100, 200)
textEffectFormat = shapes.get(0).getTextEffect()
textEffectFormat.setTextEffect(MsoPresetTextEffect.TEXT_EFFECT_10)
workbook.save("Book1.xls")
| Property Getters/Setters Summary | ||
|---|---|---|
method | getFontBold() | |
method | setFontBold(value) | |
| Indicates whether font is bold. | ||
method | getFontItalic() | |
method | setFontItalic(value) | |
| Indicates whether font is italic. | ||
method | getFontName() | |
method | setFontName(value) | |
| The name of the font used in the WordArt. | ||
method | getFontSize() | |
method | setFontSize(value) | |
| The size (in points) of the font used in the WordArt. | ||
method | getPresetShape() | |
method | setPresetShape(value) | |
| Gets and sets the preset shape type. The value of the property is MsoPresetTextEffectShape integer constant. | ||
method | getRotatedChars() | |
method | setRotatedChars(value) | |
| If true,characters in the specified WordArt are rotated 90 degrees relative to the WordArt's bounding shape. | ||
method | getText() | |
method | setText(value) | |
| The text in the WordArt. | ||
| Method Summary | ||
|---|---|---|
method | setTextEffect(effect) | |
Sets the preset text effect.
|
||
String getText() / setText(value)
String getFontName() / setFontName(value)
boolean getFontBold() / setFontBold(value)
boolean getFontItalic() / setFontItalic(value)
boolean getRotatedChars() / setRotatedChars(value)
int getFontSize() / setFontSize(value)
int getPresetShape() / setPresetShape(value)
setTextEffect(effect)
effect: int - A