shadow property
Font.shadow property
True if the font is formatted as shadowed.
@property
def shadow(self) -> bool:
...
@shadow.setter
def shadow(self, value: bool):
...
Examples
Shows how to create a run of text formatted with a shadow.
doc = aw.Document()
builder = aw.DocumentBuilder(doc=doc)
# Set the Shadow flag to apply an offset shadow effect,
# making it look like the letters are floating above the page.
builder.font.shadow = True
builder.font.size = 36
builder.writeln('This text has a shadow.')
doc.save(file_name=ARTIFACTS_DIR + 'Font.Shadow.docx')
See Also
- module aspose.words
- class Font