back_theme_color property
Fill.back_theme_color property
Gets or sets a ThemeColor object that represents the background color for the fill.
@property
def back_theme_color(self) -> aspose.words.themes.ThemeColor:
...
@back_theme_color.setter
def back_theme_color(self, value: aspose.words.themes.ThemeColor):
...
Examples
Shows how to set theme color for foreground/background shape color.
doc = aw.Document()
builder = aw.DocumentBuilder(doc=doc)
shape = builder.insert_shape(shape_type=aw.drawing.ShapeType.ROUND_RECTANGLE, width=80, height=80)
fill = shape.fill
fill.fore_theme_color = aw.themes.ThemeColor.DARK1
fill.back_theme_color = aw.themes.ThemeColor.BACKGROUND2
# Note: do not use "BackThemeColor" and "BackTintAndShade" for font fill.
if fill.back_tint_and_shade == 0:
fill.back_tint_and_shade = 0.2
doc.save(file_name=ARTIFACTS_DIR + 'Shape.FillThemeColor.docx')
See Also
- module aspose.words.drawing
- class Fill