Click or drag to resize
CanvasDrawingSessionDrawRectangle Method (Rect, Color, Single, CanvasStrokeStyle)
Draws a rectangle of the specified stroke width and color, with a custom stroke style.

Namespace:  Microsoft.Graphics.Canvas
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public void DrawRectangle(
	Rect rect,
	Color color,
	float strokeWidth,
	CanvasStrokeStyle strokeStyle
)

Parameters

rect
Type: Windows.FoundationRect
color
Type: Windows.UIColor
strokeWidth
Type: SystemSingle
strokeStyle
Type: Microsoft.Graphics.Canvas.GeometryCanvasStrokeStyle
See Also