Skip to content

DrawVerticalLine Method (6)

DrawVerticalLine (1 of 6)

Summary

Draws a vertical line.

Signature

1
public abstract ChartVerticalLine DrawVerticalLine(string name, DateTime time, Color color)

Parameters

Name Type Description
name string The chart object name - a unique name that can be only used once for a chart area. If duplicated, the chart object will be replaced with a new one of the same name.
time DateTime The time value on the X-axis.
color Color The line color.

Return Value

ChartVerticalLine

Declaring Type

cAlgo.API.ChartArea

DrawVerticalLine (2 of 6)

Summary

Draws a vertical line.

Signature

1
public abstract ChartVerticalLine DrawVerticalLine(string name, DateTime time, Color color, int thickness)

Parameters

Name Type Description
name string The chart object name - a unique name that can be only used once for a chart area. If duplicated, the chart object will be replaced with a new one of the same name.
time DateTime The time value of the line location on the X-axis.
color Color The line color.
thickness int The line thickness.

Return Value

ChartVerticalLine

Declaring Type

cAlgo.API.ChartArea

DrawVerticalLine (3 of 6)

Summary

Draws a vertical line.

Signature

1
public abstract ChartVerticalLine DrawVerticalLine(string name, DateTime time, Color color, int thickness, LineStyle lineStyle)

Parameters

Name Type Description
name string The chart object name - a unique name that can be only used once for a chart area. If duplicated, the chart object will be replaced with a new one of the same name.
time DateTime The time value of the line location on the X-axis.
color Color The line color.
thickness int The line thickness.
lineStyle LineStyle The line style.

Return Value

ChartVerticalLine

Declaring Type

cAlgo.API.ChartArea

DrawVerticalLine (4 of 6)

Summary

Draws a vertical line.

Signature

1
public abstract ChartVerticalLine DrawVerticalLine(string name, int barIndex, Color color)

Parameters

Name Type Description
name string The chart object name - a unique name that can be only used once for a chart area. If duplicated, the chart object will be replaced with a new one of the same name.
barIndex int The bar index of the line location on the X-axis.
color Color The line color.

Return Value

ChartVerticalLine

Declaring Type

cAlgo.API.ChartArea

DrawVerticalLine (5 of 6)

Summary

Draws a vertical line.

Signature

1
public abstract ChartVerticalLine DrawVerticalLine(string name, int barIndex, Color color, int thickness)

Parameters

Name Type Description
name string The chart object name - a unique name that can be only used once for a chart area. If duplicated, the chart object will be replaced with a new one of the same name.
barIndex int The bar index of the line location on the X-axis.
color Color The line color.
thickness int The line thickness.

Return Value

ChartVerticalLine

Declaring Type

cAlgo.API.ChartArea

DrawVerticalLine (6 of 6)

Summary

Draws a vertical line.

Signature

1
public abstract ChartVerticalLine DrawVerticalLine(string name, int barIndex, Color color, int thickness, LineStyle lineStyle)

Parameters

Name Type Description
name string The chart object name - a unique name that can be only used once for a chart area. If duplicated, the chart object will be replaced with a new one of the same name.
barIndex int The bar index of the line location on the X-axis.
color Color The line color.
thickness int The line thickness.
lineStyle LineStyle The line style.

Return Value

ChartVerticalLine

Declaring Type

cAlgo.API.ChartArea


Last update: July 1, 2022

Comments