Method AddLine
AddLine(Point, int, Orientation, LineStyle, Attribute?)
Adds a new length
long line to the canvas starting at start
.
Use positive length
for the line to extend Right and negative for Left when
Orientation is Horizontal.
Use positive length
for the line to extend Down and negative for Up when
Orientation is Vertical.
public void AddLine(Point start, int length, Orientation orientation, LineStyle style, Attribute? attribute = null)
Parameters
start
PointStarting point.
length
intThe length of line. 0 for an intersection (cross or T). Positive for Down/Right. Negative for Up/Left.
orientation
OrientationThe direction of the line.
style
LineStyleThe style of line to use
attribute
Attribute?
AddLine(StraightLine)
Adds a new line to the canvas
public void AddLine(StraightLine line)
Parameters
line
StraightLine