Table of Contents

Class Line

Namespace
nanoFramework.Presentation.Shapes
Assembly
nanoFramework.Graphics.dll

Represents a line shape that can be rendered on a display.

public class Line : Shape
Inheritance
Line
Inherited Members
Extension Methods

Constructors

Line()

Initializes a new instance of the Line class with default values.

public Line()

Line(int, int)

Initializes a new instance of the Line class with the specified dimensions.

public Line(int dx, int dy)

Parameters

dx int

The width of the line.

dy int

The height of the line.

Properties

Direction

Gets or sets the direction of the line.

public Direction Direction { get; set; }

Property Value

Direction

Methods

OnRender(DrawingContext)

Renders the line shape using the specified DrawingContext object.

public override void OnRender(DrawingContext dc)

Parameters

dc DrawingContext

The DrawingContext object to use for rendering.