CanvasExtensions.DrawLine(ICanvas, PointF, PointF) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.