---
title: "BaseViewer..::.viewportAlignment Property "
canonical: https://www.graphicsmill.com/docs/gm5/P_J_GraphicsMill_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:** [GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_J_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill.AjaxControls (in Aurigma.GraphicsMill.AjaxControls.dll)
 
## Syntax
  
```
function get_viewportAlignment();
function set_viewportAlignment(value);
```
 
### Property Value
The [ViewportAlignment](https://www.graphicsmill.com/docs/gm5/T_J_GraphicsMill_ViewportAlignment.htm.md) enumeration member that specifies content alignment in the control.
 
## Remarks
  
This property corresponds to [BaseViewer.ViewportAlignment](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_AjaxControls_BaseViewer_ViewportAlignment.htm.md) server-side member.
   
## See Also

### Reference

- [BaseViewer Class](https://www.graphicsmill.com/docs/gm5/T_J_GraphicsMill_BaseViewer.htm.md)
- [GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_J_GraphicsMill.htm.md)
