Export (0) Print
Expand All

PenType Enumeration

Specifies the type of fill a Pen object uses to fill lines.

Namespace: System.Drawing.Drawing2D
Assembly: System.Drawing (in system.drawing.dll)

public enum PenType
public enum PenType
public enum PenType

 Member nameDescription
HatchFillSpecifies a hatch fill. 
LinearGradientSpecifies a linear gradient fill. 
PathGradientSpecifies a path gradient fill. 
SolidColorSpecifies a solid fill. 
TextureFillSpecifies a bitmap texture fill. 

The pen type is determined by the Brush property of the Pen object.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft