Method DrawLine
DrawLine(int, int, int, int)
When implemented by a class, draws a line from the given start position up to, but not including, the specified end point.
void DrawLine(int x1, int y1, int x2, int y2)
Parameters
x1intX-coordinate of the line's start point.
y1intY-coordinate of the line's start point.
x2intX-coordinate of the line's ending point.
y2intY-coordinate of the line's ending point.
DrawLine(int, int, int, int, Color, int, DashStyle)
When implemented by a class, draws a line from the given start position up to, but not including, the specified end point.
void DrawLine(int x1, int y1, int x2, int y2, Color color, int width, DashStyle penStyle)
Parameters
x1intX-coordinate of the line's start point.
y1intY-coordinate of the line's start point.
x2intX-coordinate of the line's ending point.
y2intY-coordinate of the line's ending point.
colorColorSpecifies color of the Pen object to draw line.
widthintSpecifies width of the Pen object to draw line.
penStyleDashStyleSpecifies style of the Pen object to draw line.