Skip to content

ChartTemplateDisplaySettings.Grid

property · ChartTemplateDisplaySettings · cAlgo.API Since 5.6

DesktopCLICloud

Defines if the Grid is displayed on the chart background.

Environment behaviour

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

Definition

bool Grid {get; set;}
chartTemplateDisplaySettings.Grid: bool

Returns bool

Examples

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