Defines an object used to draw lines and curves.
[Visual Basic] NotInheritable Public Class Pen Inherits MarshalByRefObject Implements ISystemColorTracker, ICloneable [C#] public sealed class Pen : MarshalByRefObject, ISystemColorTracker, ICloneable [C++] public __gc __sealed class Pen : public MarshalByRefObject, ISystemColorTracker, ICloneable [JScript] public class Pen extends MarshalByRefObject, ISystemColorTracker, ICloneable
A Pen draws a line of specified width and style. Use the DashStyle property to draw several varieties of dashed lines. The line drawn by a 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.dll