Skip to content

ChartTemplate.DisplaySettings

property · ChartTemplate · cAlgo.API Since 5.6

DesktopCLICloud

Gets the chart template display 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

ChartTemplateDisplaySettings DisplaySettings {get;}
chartTemplate.DisplaySettings: ChartTemplateDisplaySettings

Returns ChartTemplateDisplaySettings

Examples

var template = ChartTemplates.Get("My Template");
if (template != null)
{
    template.DisplaySettings.Grid = false;
    Print("Template grid shown: {0}", template.DisplaySettings.Grid);
}
template = api.ChartTemplates.Get("My Template")
if template is not None:
    template.DisplaySettings.Grid = False
    api.Print(f"Template grid shown: {template.DisplaySettings.Grid}")