Name
PenType
Synopsis
A System.Drawing.Pen
can have a
System.Drawing.Brush
assigned to fill the stroke
(as opposed to fill the shape). The type of brush that has been
assigned can be determined via the
System.Drawing.Pen.PenType
property. The value
returned is chosen from this enumeration.
public enum PenType { SolidColor = 0, HatchFill = 1, TextureFill = 2, PathGradient = 3, LinearGradient = 4 }
Hierarchy
System.Object
→ System.ValueType → System.Enum(System.IComparabl,
System.IFormattable
,
System.IConvertible)
→ PenType
Returned By
System.Drawing.Pen.PenType
Get .NET Windows Forms in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.