Share via


CanvasExtensions.DrawLine(ICanvas, PointF, PointF) Method

Definition

Draws a line between two points.

public:
[System::Runtime::CompilerServices::Extension]
 static void DrawLine(Microsoft::Maui::Graphics::ICanvas ^ target, Microsoft::Maui::Graphics::PointF point1, Microsoft::Maui::Graphics::PointF point2);
public static void DrawLine(this Microsoft.Maui.Graphics.ICanvas target, Microsoft.Maui.Graphics.PointF point1, Microsoft.Maui.Graphics.PointF point2);
static member DrawLine : Microsoft.Maui.Graphics.ICanvas * Microsoft.Maui.Graphics.PointF * Microsoft.Maui.Graphics.PointF -> unit
<Extension()>
Public Sub DrawLine (target As ICanvas, point1 As PointF, point2 As PointF)

Parameters

target
ICanvas

The canvas to draw on.

point1
PointF

The starting point of the line.

point2
PointF

The ending point of the line.

Applies to