Visual Basic
C#
Managed Extensions for C++
C++/CLI
Parameters
- startPoint
- A System.Drawing.PointF which represents the coordinate of the starting point for the line or rectangle.
- endPoint
- A System.Drawing.PointF which represents the coordinate of the end point for the line or rectangle being drawn.
- color
- The System.Drawing.Color used to draw the line or box.
- box
- A boolean value that if true, causes a box to be drawn using the coordinates to specify opposite corners of the box.
- fill
- A boolean value that if true and the box option is used, specifies that the box is filled with the same color used to draw the box. You cannot use fill without box. If box is used without fill, the box is filled with the current FillColor and FillStyle.