DrawHorizontalLine()
Previous Topic  Next Topic 

Definition
Draws a horizontal line.

Syntax

DrawHorizontalLine(string tag, double y, Color color)
DrawHorizontalLine(string tag, double y, Color color, DashStyle dashStyle, int width)


Parameters

tag

A user defined unique id used to reference the draw object. For example, if you pass in a value of "myTag", each time this tag is used, the same draw object is modified. If unique tags are used each time, a new draw object will be created each time.

y

The y value

color

The draw object color (reference)

dashStyle

DashStyle.Dash
DashStyle.DashDot
DashStyle.DashDotDot
DashStyle.Dot
DashStyle.Solid
(reference)

width

The width of the draw object


Examples

// Draws a horizontal line
DrawHorizontalLine("tag1", 1000, Color.Black);