---
title: "Canvas..::.alignVObject Method "
canonical: https://www.graphicsmill.com/docs/gmwc/M_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_alignVObject.htm
archived: true
applies_to:
  - product: "Graphics Mill Web Controls"
---

**You’re viewing documentation for an outdated product.** Graphics Mill Web Controls is no longer part of Graphics Mill. For current design editing and rendering tools, see [Design Atoms .NET](https://customerscanvas.com/docs/on-premises/design-atoms-cs/), [Design Atoms JS](https://customerscanvas.com/docs/on-premises/design-atoms-js/), and [Design Editor](https://customerscanvas.com/docs/on-premises/design-editor/).

# Canvas.alignVObject Method 

**Applies to:** Graphics Mill Web Controls · **Archived documentation**
 
Aligns the specified v-object.
 
**Namespace:** [Aurigma.GraphicsMill.AjaxControls.VectorObjects](https://www.graphicsmill.com/docs/gmwc/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/gmwc/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/gmwc/T_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas.htm.md)
- [Aurigma.GraphicsMill.AjaxControls.VectorObjects Namespace](https://www.graphicsmill.com/docs/gmwc/N_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects.htm.md)
