Skip to main content

DrawLine Method

Draws a line.

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public void DrawLine(
IPen pen,
Point p1,
Point p2
)

Parameters

  IPen
The stroke pen.
  Point
The first point of the line.
  Point
The second point of the line.

See Also

Reference

DrawingContext Class
Avalonia.Media Namespace