ForeThemeColor

Stroke.ForeThemeColor property

Gets or sets a ThemeColor object that represents the stroke foreground color.

public ThemeColor ForeThemeColor { get; set; }

Examples

Shows how to set fore theme color and tint and shade.

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

Shape shape = builder.InsertShape(ShapeType.TextBox, 100, 40);
Stroke stroke = shape.Stroke;
stroke.ForeThemeColor = ThemeColor.Dark1;
stroke.ForeTintAndShade = 0.5;

doc.Save(ArtifactsDir + "Shape.StrokeForeThemeColors.docx");

See Also