---
title: "Canvas..::.alignVObject Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_alignVObject.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/)

# Canvas.alignVObject Method 
 
Aligns the specified v-object.
 
**Namespace:** [Aurigma.GraphicsMill.AjaxControls.VectorObjects](https://www.graphicsmill.com/docs/gm5/N_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects.htm.md)
 **Assembly:** Aurigma.GraphicsMill.AjaxControls.VectorObjects (in Aurigma.GraphicsMill.AjaxControls.dll)
 
## Syntax
  
```
function alignVObject(vObject, align);
```
 
### Parameters
 
 - vObject
     - Type: [Aurigma.GraphicsMill.AjaxControls.VectorObjects.VObject](https://www.graphicsmill.com/docs/gm5/T_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_VObject.htm.md)
Vector object to align.

 - align
     - Type: Global.String
Alignment. See the **Remarks** section for a list of alignment options.
 
## Remarks
  
- **left** aligns the v-object along the left edge of the canvas.
- **horizontalCenter** centers the v-object horizontally within the canvas.
- **right** aligns the v-object along the right edge of the canvas.
- **top** aligns the v-object along the top edge of the canvas.
- **verticalCenter** centers the v-object vertically within the canvas.
- **bottom** aligns the v-object along the bottom edge of the canvas.
   
## See Also

### Reference

- [Canvas Class](https://www.graphicsmill.com/docs/gm5/T_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas.htm.md)
- [Aurigma.GraphicsMill.AjaxControls.VectorObjects Namespace](https://www.graphicsmill.com/docs/gm5/N_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects.htm.md)
