Skip to content

ChartVerticalLine.Thickness

property · ChartVerticalLine · cAlgo.API

DesktopCLICloud

Gets or sets the line thickness.

Environment behaviour

CLI — works differently. Created and kept with all its properties, but never drawn: the CLI displays no chart.

Cloud — works differently. Created and kept with all its properties, but never drawn: the cloud displays no chart.

Definition

int Thickness {get; set;}
chartVerticalLine.Thickness: int

Returns int

Examples

var line = Chart.DrawVerticalLine("sessionStart", Bars.OpenTimes.LastValue, Color.Gray);
line.Thickness = 2;
Print("Vertical line thickness: {0}", line.Thickness);
line = api.Chart.DrawVerticalLine("sessionStart", api.Bars.OpenTimes.LastValue, Color.Gray)
line.Thickness = 2
api.Print(f"Vertical line thickness: {line.Thickness}")