PenType Enumeration

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Member nameDescription
HatchFill

Specifies a hatch fill.

LinearGradient

Specifies a linear gradient fill.

PathGradient

Specifies a path gradient fill.

SolidColor

Specifies a solid fill.

TextureFill

Specifies a bitmap texture fill.

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

.NET Framework
Available since 1.1
Return to top
Show: