---
title: "MailPrinter.PageUnit"
url: "https://reference.aspose.com/email/net/aspose.email.printing/mailprinter/pageunit/"
product: "Aspose.Email for .NET API Reference"
description: "MailPrinter property. Gets or sets the page unit"
---

## MailPrinter.PageUnit property

Gets or sets the page unit.

```csharp
public PrinterUnit PageUnit { get; set; }
```

### Property Value

The page unit.

### Exceptions

| exception | condition |
| --- | --- |
| InvalidEnumArgumentException | If passed value is not a [`PrinterUnit`](../../printerunit/) |

### See Also

* enum [PrinterUnit](../../printerunit/)
* class [MailPrinter](../)
* namespace [Aspose.Email.Printing](../../mailprinter/)
* assembly [Aspose.Email](../../../)


