Skip to content

ChartTemplateColorSettings.ForegroundColor

property · ChartTemplateColorSettings · cAlgo.API Since 5.6

DesktopCLICloud

Gets or sets the color of the chart foreground.

Environment behaviour

Cloud — not supported. Never available in the cloud: it is only returned by members that do not work there (ChartTemplate.ColorSettings).

Definition

Color ForegroundColor {get; set;}
chartTemplateColorSettings.ForegroundColor: Color

Returns Color

Examples

var template = ChartTemplates.Get("My Template");
if (template != null)
{
    template.ColorSettings.ForegroundColor = Color.WhiteSmoke;
    Print("Template foreground color: {0}", template.ColorSettings.ForegroundColor);
}
template = api.ChartTemplates.Get("My Template")
if template is not None:
    template.ColorSettings.ForegroundColor = Color.WhiteSmoke
    api.Print(f"Template foreground color: {template.ColorSettings.ForegroundColor}")