add_text_effect method

add_text_effect

Inserts a WordArt object.

Returns

Returns a Shape object that represents the new WordArt object.

def add_text_effect(self, effect, text, font_name, size, font_bold, font_italic, upper_left_row, top, upper_left_column, left, height, width):
    ...
ParameterTypeDescription
effectMsoPresetTextEffectThe mso preset text effect type.
textstrThe WordArt text.
font_namestrThe font name.
sizeintThe font size
font_boldboolIndicates whether font is bold.
font_italicboolIndicates whether font is italic.
upper_left_rowintUpper left row index.
topintRepresents the vertical offset of shape from its left row, in unit of pixel.
upper_left_columnintUpper left column index.
leftintRepresents the horizontal offset of shape from its left column, in unit of pixel.
heightintRepresents the height of shape, in unit of pixel.
widthintRepresents the width of shape, in unit of pixel.

Example

from aspose.cells.drawing import MsoPresetTextEffect

# add a WordArt
wordArt1 = shapes.add_text_effect(MsoPresetTextEffect.TEXT_EFFECT10, "WordArt", "arial", 18, False, False, 3, 0, 3, 0, 200, 50)

See Also