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. |
Property Getters/Setters Detail |
---|
getText/setText : String | |
String getText() / setText(value) |
getFontName/setFontName : String | |
String getFontName() / setFontName(value) |
getFontBold/setFontBold : boolean | |
boolean getFontBold() / setFontBold(value) |
getFontItalic/setFontItalic : boolean | |
boolean getFontItalic() / setFontItalic(value) |
getRotatedChars/setRotatedChars : boolean | |
boolean getRotatedChars() / setRotatedChars(value) |
getFontSize/setFontSize : int | |
int getFontSize() / setFontSize(value) |
getPresetShape/setPresetShape : int | |
int getPresetShape() / setPresetShape(value) |
Method Detail |
---|
setTextEffect | |
setTextEffect(effect) |
effect: int
- A