Click or drag to resize
DrawingWindowDrawSquare Method
Draws a square 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 DrawSquare(
	double x,
	double y,
	double halfLength
)

Parameters

x
Type: SystemDouble
the X-coordinate of the center of the square
y
Type: SystemDouble
the Y-coordinate of the center of the square
halfLength
Type: SystemDouble
one half the side of the square

Return Value

Type: DrawingVisual
A drawing visual as handle to the drawing
Exceptions
ExceptionCondition
ArgumentExceptionif halfLength is negative
See Also