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)

shape = builder.insert_shape(awd.ShapeType.ROUND_RECTANGLE, 80.0, 80.0)

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(ARTIFACTS_DIR + "Shape.FillThemeColor.docx");

See Also