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
Properties
Direction
Gets or sets the direction of the line.
public Direction Direction { get; set; }
Property Value
Methods
OnRender(DrawingContext)
Renders the line shape using the specified DrawingContext object.
public override void OnRender(DrawingContext dc)
Parameters
dc
DrawingContextThe DrawingContext object to use for rendering.