This property sets the pen style.
[Visual
Basic] imagekitcontrolname.PrintDraw.PenStyle
[ = PenModeConstants ]
[Visual
C++] imagekitcontrolname.GetPrintDraw().SetPenStyle(long
Val)
Property Value
Value | Explanation |
---|---|
0 | Pen doesn't draw a line. (PS_NULL) |
1 | Pen is solid. (PS_SOLID) |
2 | Pen is dashed. (PS_DASH) |
3 | Pen is dotted. (PS_DOT) |
4 | Pen has alternating dashes and dots. (PS_DASHDOT) |
5 | Pen has alternating dashes and double dots. (PS_DASHDOTDOT) |
6 | Pen is solid.* (PS_INSIDEFRAME) |
( ) The explanation contained in the parentheses has the same meaning as the constants used by WindowsAPI
In Visual Basic the following constants can be used: (ikPenNull = 0, ikPenSolid = 1, ikPenDash = 2, ikPenDot = 3, ikPenDashDot = 4, ikPenDashDotDot = 5, ikPenInsideFrame = 6).
Explanation
The PenStyle property sets the pen style. When drawing figures with methods other than the Line and Rectangle methods, if the PenStyle property is set from 2 to 5 then the PenWidth property is automatically set to 1.
Setting this value
This value can be set at runtime.
Retrieving this value
This value cannot be retrieved.