back_theme_color property
Stroke.back_theme_color property
Gets or sets a ThemeColor object that represents the stroke background color.
@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 back theme color and tint and shade.
doc = aw.Document(file_name=MY_DIR + 'Stroke gradient outline.docx')
shape = doc.get_child(aw.NodeType.SHAPE, 0, True).as_shape()
stroke = shape.stroke
stroke.back_theme_color = aw.themes.ThemeColor.DARK2
stroke.back_tint_and_shade = 0.2
doc.save(file_name=ARTIFACTS_DIR + 'Shape.StrokeBackThemeColors.docx')
See Also
- module aspose.words.drawing
- class Stroke