Control Reference > VSPrinter Control > VSPrinter Properties > Draw Property (VSPrinter) |
Draws an object within the rectangle defined by the X1, Y1, X2, and Y2 properties.
[form!]VSPrinter.Draw = DrawSettings
This property was initially implemented in the VBX version of the VSPrinter control, which did not support custom methods. It is still supported for compatibility with older projects, but there are equivalent methods for all of its settings. When possible, the methods should be used instead of the Draw property, because they provide more options and result in clearer code.
The settings for the Draw property are described below:
Constant |
Value |
Description |
doNothing |
0 |
No effect. |
doLine |
1 |
Draw a line between points (X1, Y1) and (X2, Y2), see also the DrawLine method. |
doRectangle |
2 |
Draw a rectangle between points (X1, Y1) and (X2, Y2), see also the DrawRectangle method. |
doEllipse |
3 |
Draw an ellipse enclosed in the rectangle defined by points (X1, Y1) and (X2, Y2), see also the DrawCircle and DrawEllipse methods. |
All graphical objects are drawn with the current pen and filled with the current brush. Pen and brush attributes are defined with the PenColor, PenStyle, PenWidth, BrushColor, and BrushStyle properties.
DrawSettings (Enumeration)