DrawingWindowDrawSquare Method |
Draws a square of the specified size, centered at (X, Y).
Namespace: Algs4NetAssembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax 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:
DrawingVisualA drawing visual as handle to the drawing
Exceptions See Also