Click or drag to resize
DrawingWindowDrawFilledRectangle Method
Draws a filled rectangle of the specified size, centered at (X, Y).

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public DrawingVisual DrawFilledRectangle(
	double x,
	double y,
	double halfWidth,
	double halfHeight
)

Parameters

x
Type: SystemDouble
the X-coordinate of the center of the rectangle
y
Type: SystemDouble
the Y-coordinate of the center of the rectangle
halfWidth
Type: SystemDouble
one half the width of the rectangle
halfHeight
Type: SystemDouble
one half the height of the rectangle

Return Value

Type: DrawingVisual
A drawing visual as handle to the drawing
Exceptions
ExceptionCondition
ArgumentExceptionif either halfWidth or halfHeight is negative
See Also