# GpPenAlignment enumeration
{: .no_toc }

Selects the position of a pen relative to the line it draws.

| Member | Value | Description |
|:-------|:------|:------------|
| **PenAlignmentCenter**{: #PenAlignmentCenter } | `0` | The pen is centred on the line, half of its width on each side. |
| **PenAlignmentInset**{: #PenAlignmentInset } | `1` | The pen is on the inside of the line. For a closed shape the whole width is inside the shape. |

## Used by

- [**Pen**](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Pen.md) class: [**Alignment**](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Pen.md#alignment)

## See Also

- [PenAlignment](https://learn.microsoft.com/en-us/windows/win32/api/gdiplusenums/ne-gdiplusenums-penalignment) -- Microsoft's documentation of the GDI+ enumeration
- [Enumerations](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Enumerations/index.md) -- all the enumerations of the package
- [Pen](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Pen.md) class
