Skip to main content

Line Class

NuGet: GHIElectronics.TinyCLR.UI
Assembly: GHIElectronics.TinyCLR.UI
Namespace: GHIElectronics.TinyCLR.UI.Shapes

Draws a straight line.

public class Line : Shape

Constructors​

Line()​

public Line() : this(0, 0)

Creates a line with no length.

Line(int dx, int dy)​

public Line(int dx, int dy)

Creates a line spanning the given horizontal and vertical extents.

Properties​

Direction​

public Direction Direction { get; set; }

The direction in which the line is drawn.

Methods​

OnRender(Media.DrawingContext dc)​

public override void OnRender(Media.DrawingContext dc)

Renders the line to the drawing context.