Share via


CanvasExtensions.DrawRectangle Method

Definition

Overloads

DrawRectangle(ICanvas, Rect)

Draws the outline of a rectangle.

DrawRectangle(ICanvas, RectF)

Draws the outline of a rectangle.

DrawRectangle(ICanvas, Rect)

Source:
CanvasExtensions.cs
Source:
CanvasExtensions.cs
Source:
CanvasExtensions.cs

Draws the outline of a rectangle.

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

Parameters

target
ICanvas

The canvas to draw on.

rect
Rect

The rectangle to draw.

Applies to

DrawRectangle(ICanvas, RectF)

Source:
CanvasExtensions.cs
Source:
CanvasExtensions.cs
Source:
CanvasExtensions.cs

Draws the outline of a rectangle.

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

Parameters

target
ICanvas

The canvas to draw on.

rect
RectF

The rectangle to draw.

Applies to