## Pen.Alignment property

Gets or sets the alignment for this [`Pen`](../).

```csharp
public PenAlignment Alignment { get; set; }
```

### Property Value

A [`PenAlignment`](../../penalignment/) that represents the alignment for this [`Pen`](../).

### Exceptions

| exception | condition |
| --- | --- |
| ArgumentException | The `Alignment` property is set on an immutable [`Pen`](../), such as those returned by the [`Pen`](../) class. |

### See Also

* enum [PenAlignment](../../penalignment/)
* class [Pen](../)
* namespace [Aspose.Imaging](../../pen/)
* assembly [Aspose.Imaging](../../../)


