text_effect property

Font.text_effect property

Gets or sets the font animation effect.

@property
def text_effect(self) -> aspose.words.TextEffect:
    ...

@text_effect.setter
def text_effect(self, value: aspose.words.TextEffect):
    ...

Examples

Shows how to apply a visual effect to a run.

doc = aw.Document()
builder = aw.DocumentBuilder(doc)
builder.font.size = 36
builder.font.text_effect = aw.TextEffect.SPARKLE_TEXT
builder.writeln('Text with a sparkle effect.')
# Older versions of Microsoft Word only support font animation effects.
doc.save(file_name=ARTIFACTS_DIR + 'Font.SparklingText.doc')

See Also