# Pen class

Namespace: [Eto.Drawing](https://eto.picoe.ca/api/namespace/eto.drawing.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
public sealed class Pen : IHandlerSource, IDisposable, IControlObjectSource
```

Defines attributes for line drawing methods in [Graphics](https://eto.picoe.ca/api/type/eto.drawing.graphics.md)

## Constructors

- [Pen](https://eto.picoe.ca/api/type/eto.drawing.pen/ctor.md): (2 overloads) Creates a new pen with the specified `brush` and `thickness`

## Properties

- [Brush](https://eto.picoe.ca/api/type/eto.drawing.pen/brush.md): Gets the brush associated with the pen.
- [Color](https://eto.picoe.ca/api/type/eto.drawing.pen/color.md): (obsolete) Gets or sets the color of the pen
- [ControlObject](https://eto.picoe.ca/api/type/eto.drawing.pen/controlobject.md): Gets the control object for this widget
- [DashStyle](https://eto.picoe.ca/api/type/eto.drawing.pen/dashstyle.md): Gets or sets the dash style of the pen
- [Handler](https://eto.picoe.ca/api/type/eto.drawing.pen/handler.md): Gets the platform handler object for the widget
- [Instantiator](https://eto.picoe.ca/api/type/eto.drawing.pen/instantiator.md): (static, obsolete) Gets a delegate that can be used to create instances of the Pen with low overhead
- [LineCap](https://eto.picoe.ca/api/type/eto.drawing.pen/linecap.md): Gets or sets the line cap style of the pen
- [LineJoin](https://eto.picoe.ca/api/type/eto.drawing.pen/linejoin.md): Gets or sets the line join style of the pen
- [MiterLimit](https://eto.picoe.ca/api/type/eto.drawing.pen/miterlimit.md): Gets or sets the miter limit on the ratio of the length vs. the [Pen.Thickness](https://eto.picoe.ca/api/type/eto.drawing.pen/thickness.md) of this pen
- [Thickness](https://eto.picoe.ca/api/type/eto.drawing.pen/thickness.md): Gets or sets the thickness (width) of the pen

## Methods

- [Dispose](https://eto.picoe.ca/api/type/eto.drawing.pen/dispose.md): Releases all resource used by the [Pen](https://eto.picoe.ca/api/type/eto.drawing.pen.md) object.
