Method AddLine
AddLine(Point, int, Orientation, BorderStyle)
Add a new line to the canvas starting at from
.
Use positive length
for Right and negative for Left
when Orientation is Horizontal.
Use positive length
for Down and negative for Up
when Orientation is Vertical.
public void AddLine(Point from, int length, Orientation orientation, BorderStyle style)
Parameters
from
PointStarting point.
length
intLength of line. 0 for a dot.
Positive for Down/Right. Negative for Up/Left.orientation
OrientationDirection of the line.
style
BorderStyleThe style of line to use