---
title: "Pen..::.Alignment Property "
canonical: https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Drawing_Pen_Alignment.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# Pen.Alignment Property 
 
Gets/sets pen alignment.
 
**Namespace:** [Aurigma.GraphicsMill.Drawing](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Drawing.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Property Alignment As PenAlignment
```
 
```csharp
public PenAlignment Alignment { get; set; }
```
 
### Property Value
 [System.Drawing.Drawing2D.PenAlignment](http://msdn2.microsoft.com/en-us/z62ath7a) value specifying current pen alignment.
 
## Remarks
 Pen alignment is necessary when pen [Width](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Drawing_Pen_Width.htm.md) is more than 1. It means how line is positioned relatively to the pen center. Although [System.Drawing.Drawing2D.PenAlignment](http://msdn2.microsoft.com/en-us/z62ath7a) has five possible values, both GDI+ and Graphics Mill for .NET support only [Center](http://msdn2.microsoft.com/en-us/bb493582) and [Inset](http://msdn2.microsoft.com/en-us/bb495497) members. 
Default value is [Center](http://msdn2.microsoft.com/en-us/bb493582).
   
## See Also

### Reference

- [Pen Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Drawing_Pen.htm.md)
- [Aurigma.GraphicsMill.Drawing Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Drawing.htm.md)
