System.Drawing.Pen Class

Defines an object used to draw lines and curves. This class cannot be inherited.

See Also: Pen Members


public sealed class Pen : MarshalByRefObject, ICloneable, IDisposable


A System.Drawing.Pen draws a line of specified width and style. Use the System.Drawing.Drawing2D.DashStyle property to draw several varieties of dashed lines. The line drawn by a System.Drawing.Pen can be filled in a variety of fill styles, including solid colors and textures. The fill style depends on brush or texture that is used as the fill object.


Namespace: System.Drawing
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0,