Help Center

PenTypefunction

Indicates the type of pattern, texture, or gradient that a pen draws.

Graphicsfunctiondoc-orphan
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.

Parameters

NameDescription
PenTypeUnknown-1
PenTypeSolidColor0
PenTypeHatchFill1
PenTypeTextureFill2
PenTypePathGradient3
PenTypeLinearGradient4

Description

The PenType enumeration indicates the type of pattern, texture, or gradient that a pen draws.

Remarks

A pen's type is determined when the pen is constructed. For example, if you pass a HatchBrush object to a Pen constructor, then the pen that is constructed has a pen type of PenTypeHatchFill. If you pass a Color object or a SolidBrush object to a Pen constructor, then the pen that is constructed has a pen type of PenTypeSolidColor.

Reference