Skip to content

ChartTemplateColorSettings.GridLinesColor

property · ChartTemplateColorSettings · cAlgo.API Since 5.6

DesktopCLICloud

Gets or sets the color of the grid lines.

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 GridLinesColor {get; set;}
chartTemplateColorSettings.GridLinesColor: Color

Returns Color

Examples

var template = ChartTemplates.Get("My Template");
if (template != null)
{
    template.ColorSettings.GridLinesColor = Color.FromArgb(40, Color.Gray);
    Print("Template grid lines color: {0}", template.ColorSettings.GridLinesColor);
}
template = api.ChartTemplates.Get("My Template")
if template is not None:
    template.ColorSettings.GridLinesColor = Color.FromArgb(40, Color.Gray)
    api.Print(f"Template grid lines color: {template.ColorSettings.GridLinesColor}")