---
title: "BaseViewer..::.ViewportAlignment Property "
canonical: https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_AjaxControls_BaseViewer_ViewportAlignment.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/)

# BaseViewer.ViewportAlignment Property 
 
Gets/sets a value that specifies content alignment in the control.
 
**Namespace:** [Aurigma.GraphicsMill.AjaxControls](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_AjaxControls.htm.md)
 **Assembly:** Aurigma.GraphicsMill.AjaxControls (in Aurigma.GraphicsMill.AjaxControls.dll)
 
## Syntax
  
```
<BrowsableAttribute(True)> _
Public Property ViewportAlignment As ViewportAlignment
```
 
```csharp
[BrowsableAttribute(true)]
public ViewportAlignment ViewportAlignment { get; set; }
```
 
### Property Value
The [ViewportAlignment](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_AjaxControls_ViewportAlignment.htm.md) enumeration member that specifies content alignment in the control.
   
## See Also

### Reference

- [BaseViewer Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_AjaxControls_BaseViewer.htm.md)
- [Aurigma.GraphicsMill.AjaxControls Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_AjaxControls.htm.md)
