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
startPointStarting point.
lengthintThe length of line. 0 for an intersection (cross or T). Positive for Down/Right. Negative for Up/Left.
orientationOrientationThe direction of the line.
styleLineStyleThe style of line to use
attributeAttribute?
AddLine(StraightLine)
Adds a new line to the canvas
public void AddLine(StraightLine line)
Parameters
lineStraightLine