BackThemeColor

Stroke.BackThemeColor property

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

public ThemeColor BackThemeColor { get; set; }

Examples

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

Document doc = new Document(MyDir + "Stroke gradient outline.docx");

Shape shape = (Shape)doc.GetChild(NodeType.Shape, 0, true);
Stroke stroke = shape.Stroke;
stroke.BackThemeColor = ThemeColor.Dark2;
stroke.BackTintAndShade = 0.2d;

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

See Also