TextEffectFormat class
TextEffectFormat class
Contains properties and methods that apply to WordArt objects.
The TextEffectFormat type exposes the following members:
Properties
Property | Description |
---|---|
text | The text in the WordArt. |
font_name | The name of the font used in the WordArt. |
font_bold | Indicates whether font is bold. |
font_italic | Indicates whether font is italic. |
rotated_chars | If true,characters in the specified WordArt are rotated 90 degrees relative to the WordArt’s bounding shape. |
font_size | The size (in points) of the font used in the WordArt. |
preset_shape | Gets and sets the preset shape type. |
Methods
Method | Description |
---|---|
set_text_effect | Sets the preset text effect. |
Example
from aspose.cells import Workbook
from aspose.cells.drawing import MsoPresetTextEffect
# Instantiating a Workbook object
workbook = Workbook()
shapes = workbook.worksheets[0].shapes
shapes.add_text_effect(MsoPresetTextEffect.TEXT_EFFECT1, "Aspose", "Arial", 30, False, False, 0, 0, 0, 0, 100, 200)
textEffectFormat = shapes[0].text_effect
textEffectFormat.set_text_effect(MsoPresetTextEffect.TEXT_EFFECT10)
workbook.save("Book1.xls")
See Also
- module
aspose.cells.drawing