Class Line
Represents a line shape that can be rendered on a display.
Inherited Members
Namespace: nanoFramework.Presentation.Shapes
Assembly: nanoFramework.Graphics.dll
Syntax
public class Line : Shape
Constructors
Line()
Initializes a new instance of the Line class with default values.
Declaration
public Line()
Line(int, int)
Initializes a new instance of the Line class with the specified dimensions.
Declaration
public Line(int dx, int dy)
Parameters
Type | Name | Description |
---|---|---|
int | dx | The width of the line. |
int | dy | The height of the line. |
Properties
Direction
Gets or sets the direction of the line.
Declaration
public Direction Direction { get; set; }
Property Value
Type | Description |
---|---|
Direction |
Methods
OnRender(DrawingContext)
Renders the line shape using the specified DrawingContext object.
Declaration
public override void OnRender(DrawingContext dc)
Parameters
Type | Name | Description |
---|---|---|
DrawingContext | dc | The DrawingContext object to use for rendering. |