fore_theme_color property
Stroke.fore_theme_color property
Gets or sets a ThemeColor object that represents the stroke foreground color.
@property
def fore_theme_color(self) -> aspose.words.themes.ThemeColor:
...
@fore_theme_color.setter
def fore_theme_color(self, value: aspose.words.themes.ThemeColor):
...
Examples
Shows how to set fore theme color and tint and shade.
doc = aw.Document()
builder = aw.DocumentBuilder(doc)
shape = builder.insert_shape(aw.drawing.ShapeType.TEXT_BOX, 100, 40)
stroke = shape.stroke
stroke.fore_theme_color = ThemeColor.DARK1
stroke.fore_tint_and_shade = 0.5
doc.save(ARTIFACTS_DIR + "Shape.StrokeForeThemeColors.docx")
See Also
- module aspose.words.drawing
- class Stroke