Skip to content

ChartTemplate.ColorSettings

property · ChartTemplate · cAlgo.API Since 5.6

DesktopCLICloud

Gets the chart template color settings.

Environment behaviour

Cloud — not supported. Never available in the cloud: it is only returned by members that do not work there (ChartTemplates, ChartTemplates.Create, ChartTemplates.DefaultTemplate and more).

Definition

ChartTemplateColorSettings ColorSettings {get;}
chartTemplate.ColorSettings: ChartTemplateColorSettings

Returns ChartTemplateColorSettings

Examples

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