Click or drag to resize
CanvasGeometryCreateRectangle Method (ICanvasResourceCreator, Rect)
Creates a new rectangle geometry object with the specified extents.

Namespace:  Microsoft.Graphics.Canvas.Geometry
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public static CanvasGeometry CreateRectangle(
	ICanvasResourceCreator resourceCreator,
	Rect rect
)

Parameters

resourceCreator
Type: Microsoft.Graphics.CanvasICanvasResourceCreator
rect
Type: Windows.FoundationRect

Return Value

Type: CanvasGeometry
Remarks
The resource creator parameter can be null if the geometry will never be drawn onto a CanvasDevice.
See Also