Pen Constructor (Typed) | |
Construct a pen.
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.21
Syntax CONSTRUCTOR(
uColor,
uLineStyle,
uWidth
) CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public Pen(
Usual uColor = default,
Usual uLineStyle = default,
Usual uWidth = default
)
Request Example
View SourceParameters
- uColor (Optional)
- Type: Usual
The pen's color. The default is black. (Refer to the Color:Init() method for details on specifying a color.) - uLineStyle (Optional)
- Type: Usual
The pen's style, specified as one of the following constants:
- uWidth (Optional)
- Type: Usual
The pen's width, in canvas coordinates. The default is 1.
Remarks Constant | Description |
---|
LINECLEAR |
Invisible, which can be used to simplify the program logic.
This is a shortcut to changing a point position without calling the MoveTo() and LineTo()
functions (as in the code example under Pen class).
|
LINEDASHDOT | Alternating dash/dot pattern. |
LINEDASHDOTDOT | A repeating sequence of a dash followed by two dots. |
LINEDASHED | Dashes. |
LINEDOTTED | Dots. |
LINESOLID | A continuous line. This is the default. |
See Also