# PdfTextAlignment enum

> Horizontal alignment of the lines of a paragraph. PdfTextAlignment enum, PdfNetStack.Drawing namespace.

Namespace: [PdfNetStack.Drawing](https://www.jadev-corp.com/api/pdfnetstack-drawing/)  
Assembly: PdfNetStack.dll  
Package: `PdfNetStack`

Horizontal alignment of the lines of a paragraph.

```csharp
public enum PdfTextAlignment
```

## Fields

`Start = 0` 

Left in left to right paragraphs, right in right to left ones.

`End = 1` 

Right in left to right paragraphs, left in right to left ones.

`Left = 2` 

Left edge.

`Right = 3` 

Right edge.

`Center = 4` 

Centered.

`Justify = 5` 

Both edges, by widening the spaces between words; the last line aligns to the start.

## Used in

- [Fonts and text in PDF with C# and .NET](https://www.jadev-corp.com/guides/fonts-and-text/)
- [CSS support in PdfNetStack.Html](https://www.jadev-corp.com/guides/html-to-pdf/css-support/)

Source: https://www.jadev-corp.com/pdfnetstack/api/pdfnetstack-drawing/pdftextalignment/
