ChartVerticalLine.LineStyle
property · ChartVerticalLine · cAlgo.API
DesktopCLICloud
Gets or sets the line style.
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
LineStyle LineStyle {get; set;}
chartVerticalLine.LineStyle: LineStyle
Returns LineStyle
Examples
var line = Chart.DrawVerticalLine("sessionStart", Bars.OpenTimes.LastValue, Color.Gray);
line.LineStyle = LineStyle.DotsVeryRare;
Print("Vertical line style: {0}", line.LineStyle);
line = api.Chart.DrawVerticalLine("sessionStart", api.Bars.OpenTimes.LastValue, Color.Gray)
line.LineStyle = LineStyle.DotsVeryRare
api.Print(f"Vertical line style: {line.LineStyle}")