ForeThemeColor
Fill.ForeThemeColor property
Gets or sets a ThemeColor object that represents the foreground color for the fill.
public ThemeColor ForeThemeColor { get; set; }
Examples
Shows how to set theme color for foreground/background shape color.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
Shape shape = builder.InsertShape(ShapeType.RoundRectangle, 80, 80);
Fill fill = shape.Fill;
fill.ForeThemeColor = ThemeColor.Dark1;
fill.BackThemeColor = ThemeColor.Background2;
// Note: do not use "BackThemeColor" and "BackTintAndShade" for font fill.
if (fill.BackTintAndShade == 0)
fill.BackTintAndShade = 0.2;
doc.Save(ArtifactsDir + "Shape.FillThemeColor.docx");
See Also
- enum ThemeColor
- class Fill
- namespace Aspose.Words.Drawing
- assembly Aspose.Words