TextEffectFormat class

TextEffectFormat class

Contains properties and methods that apply to WordArt objects.

The TextEffectFormat type exposes the following members:

Properties

PropertyDescription
textThe text in the WordArt.
font_nameThe name of the font used in the WordArt.
font_boldIndicates whether font is bold.
font_italicIndicates whether font is italic.
rotated_charsIf true,characters in the specified WordArt are rotated 90 degrees relative to the WordArt’s bounding shape.
font_sizeThe size (in points) of the font used in the WordArt.
preset_shapeGets and sets the preset shape type.

Methods

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