.NET Windows Forms in a Nutshell

PenType serializable

System.Drawing.Drawing2D (system.drawing.dll) enum

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

Категории