- x1
- The x-coordinate (in pixels) of the starting point for the line or rectangle.
- y1
- The y-coordinate (in pixels) of the starting point for the line or rectangle.
- x2
- The x-coordinate (in pixels) of the end point for the line or rectangle.
- y2
- The y-coordinate (in pixels) of the end point for the line or rectangle.
- Color
- The RGB color used to draw the line. You can use the RGB function to specify the color.
Note: Value specified must be in a valid OLE_COLOR range.
- 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 DrawFillColor and DrawFillStyle properties.
To draw connected lines, begin a subsequent line at the end point of the previous line.
The width of the line drawn depends on the setting of the DrawWidth property. The way a line or box is drawn on the background depends on the setting of the DrawMode and DrawStyle properties.
This method draws into the control's DIB.