---
title: "Canvas Members"
canonical: https://www.graphicsmill.com/docs/gm5/AllMembers_T_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas.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 Members
 
The [Canvas](https://www.graphicsmill.com/docs/gm5/T_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas.htm.md) type exposes the following members.
 
## Methods

|   |  Name |  Description |
| --- | --- | --- |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [alignVObject](https://www.graphicsmill.com/docs/gm5/M_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_alignVObject.htm.md) |  Aligns the specified v-object. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [controlToWorkspace](https://www.graphicsmill.com/docs/gm5/M_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_controlToWorkspace.htm.md) |  Translates coordinates from the control-related coordinate system to the workspace-related one. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [deleteCurrentVObject](https://www.graphicsmill.com/docs/gm5/M_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_deleteCurrentVObject.htm.md) |  Delete the currently selected v-object and shows a confirmation dialog if needed. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [dispose](https://www.graphicsmill.com/docs/gm5/M_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_dispose.htm.md) |  Removes the current [Canvas](https://www.graphicsmill.com/docs/gm5/T_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas.htm.md) from the application. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [initialize](https://www.graphicsmill.com/docs/gm5/M_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_initialize.htm.md) |  Initializes the current [Canvas](https://www.graphicsmill.com/docs/gm5/T_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas.htm.md) object. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [invokeRemoteMethod](https://www.graphicsmill.com/docs/gm5/M_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_invokeRemoteMethod.htm.md) |  Runs the specified remote method on the server. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [raiseKeyDown](https://www.graphicsmill.com/docs/gm5/M_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_raiseKeyDown.htm.md) |  Raises the key down event. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [raiseKeyUp](https://www.graphicsmill.com/docs/gm5/M_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_raiseKeyUp.htm.md) |  Raises the key up event. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [raiseMouseDown](https://www.graphicsmill.com/docs/gm5/M_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_raiseMouseDown.htm.md) |  Raises the mouse down event. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [raiseMouseMove](https://www.graphicsmill.com/docs/gm5/M_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_raiseMouseMove.htm.md) |  Raises the mouse move event. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [raiseMouseUp](https://www.graphicsmill.com/docs/gm5/M_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_raiseMouseUp.htm.md) |  Raises the mouse up event. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [redraw](https://www.graphicsmill.com/docs/gm5/M_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_redraw.htm.md) |  Redraws the canvas. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [workspaceToControl](https://www.graphicsmill.com/docs/gm5/M_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_workspaceToControl.htm.md) |  Translates coordinates from the workspace-related coordinate system to the control-related one. |
 
## Properties

|   |  Name |  Description |
| --- | --- | --- |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [canvasClientSideOptions](https://www.graphicsmill.com/docs/gm5/P_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_canvasClientSideOptions.htm.md) |  Gets values which configure automatic postback for individual events. |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [constrainedMarginEnabled](https://www.graphicsmill.com/docs/gm5/P_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_constrainedMarginEnabled.htm.md) |  Gets or sets the value indicating whether it is possible to move v-objects beyond the bounds of the canvas. |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [currentLayer](https://www.graphicsmill.com/docs/gm5/P_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_currentLayer.htm.md) |  Gets the currently selected layer. |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [currentLayerIndex](https://www.graphicsmill.com/docs/gm5/P_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_currentLayerIndex.htm.md) |  Gets or sets an index of the currently selected layer. |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [currentVObject](https://www.graphicsmill.com/docs/gm5/P_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_currentVObject.htm.md) |  Gets the currently selected v-object. |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [currentVObjectIndex](https://www.graphicsmill.com/docs/gm5/P_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_currentVObjectIndex.htm.md) |  Gets or sets an index of the currently selected v-object. |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [data](https://www.graphicsmill.com/docs/gm5/P_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_data.htm.md) |  Gets or sets serialized data of this canvas. |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [height](https://www.graphicsmill.com/docs/gm5/P_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_height.htm.md) |  Gets the height of the canvas taking into account screen vertical resolution and zoom value. |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [history](https://www.graphicsmill.com/docs/gm5/P_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_history.htm.md) |  Gets a [History](https://www.graphicsmill.com/docs/gm5/T_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_RedoUndo_History.htm.md) object associated with this canvas. |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [isSquaredBackground](https://www.graphicsmill.com/docs/gm5/P_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_isSquaredBackground.htm.md) |  Gets or sets the value indicating if the background of the canvas is squared. |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [keyEventEnabled](https://www.graphicsmill.com/docs/gm5/P_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_keyEventEnabled.htm.md) |  Gets or sets the value indicating whether the both key-up and key-down events are enabled. |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [layers](https://www.graphicsmill.com/docs/gm5/P_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_layers.htm.md) |  Gets a collection of layers associated with this canvas. |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [margin](https://www.graphicsmill.com/docs/gm5/P_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_margin.htm.md) |  Gets or sets the outer margin of the canvas. |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [marginColor](https://www.graphicsmill.com/docs/gm5/P_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_marginColor.htm.md) |  Gets or sets a color of the outer margin of the canvas. |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [marginWidth](https://www.graphicsmill.com/docs/gm5/P_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_marginWidth.htm.md) |  Gets or sets a width of the outer margin of the canvas. |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [previewColorManagementEnabled](https://www.graphicsmill.com/docs/gm5/P_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_previewColorManagementEnabled.htm.md) |  Gets or sets the value indicating whether to use color management when displaying images. |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [printColorManagementEnabled](https://www.graphicsmill.com/docs/gm5/P_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_printColorManagementEnabled.htm.md) |  Gets or sets the value indicating whether to use color management when rendering the workspace. |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [resizeGripColor](https://www.graphicsmill.com/docs/gm5/P_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_resizeGripColor.htm.md) |  Gets or set the resize grip color. |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [resizeGripSize](https://www.graphicsmill.com/docs/gm5/P_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_resizeGripSize.htm.md) |  Gets or set the resize grip width. |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [returnValue](https://www.graphicsmill.com/docs/gm5/P_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_returnValue.htm.md) |  Gets the value returned by a remote scripting method. |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [rotationGripColor](https://www.graphicsmill.com/docs/gm5/P_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_rotationGripColor.htm.md) |  Gets or set the rotation grip color. |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [rotationGripSize](https://www.graphicsmill.com/docs/gm5/P_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_rotationGripSize.htm.md) |  Gets or set the rotation grip width. |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [screenXDpi](https://www.graphicsmill.com/docs/gm5/P_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_screenXDpi.htm.md) |  Gets a horizontal resolution in DPI used to show the canvas in a browser. |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [screenYDpi](https://www.graphicsmill.com/docs/gm5/P_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_screenYDpi.htm.md) |  Gets a vertical resolution in DPI used to show the canvas in a browser. |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [status](https://www.graphicsmill.com/docs/gm5/P_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_status.htm.md) |  Gets a current bitmap status. |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [tags](https://www.graphicsmill.com/docs/gm5/P_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_tags.htm.md) |  Gets or sets custom data. |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [width](https://www.graphicsmill.com/docs/gm5/P_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_width.htm.md) |  Gets the width of the canvas taking into account screen horizontal resolution and zoom value. |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [workspaceHeight](https://www.graphicsmill.com/docs/gm5/P_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_workspaceHeight.htm.md) |  Gets or sets the height of the canvas. |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [workspaceWidth](https://www.graphicsmill.com/docs/gm5/P_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_workspaceWidth.htm.md) |  Gets or sets the width of the canvas. |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [zoom](https://www.graphicsmill.com/docs/gm5/P_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_zoom.htm.md) |  Gets or sets the current zoom value. |
 
## Events

|   |  Name |  Description |
| --- | --- | --- |
 |  ![Public event](https://www.graphicsmill.com/docs/gm5/icons/pubevent.gif) |  [callbackException](https://www.graphicsmill.com/docs/gm5/E_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_callbackException.htm.md) |  Fires when the callback threw an exception. |
 |  ![Public event](https://www.graphicsmill.com/docs/gm5/icons/pubevent.gif) |  [currentLayerChanged](https://www.graphicsmill.com/docs/gm5/E_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_currentLayerChanged.htm.md) |  Fires when the currently selected layer is changed. |
 |  ![Public event](https://www.graphicsmill.com/docs/gm5/icons/pubevent.gif) |  [currentVObjectChanged](https://www.graphicsmill.com/docs/gm5/E_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_currentVObjectChanged.htm.md) |  Fires when the currently selected v-object is changed. |
 |  ![Public event](https://www.graphicsmill.com/docs/gm5/icons/pubevent.gif) |  [currentVObjectDeleting](https://www.graphicsmill.com/docs/gm5/E_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_currentVObjectDeleting.htm.md) |  Fires when the currently selected v-object is about to be deleted. |
 |  ![Public event](https://www.graphicsmill.com/docs/gm5/icons/pubevent.gif) |  [initialized](https://www.graphicsmill.com/docs/gm5/E_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_initialized.htm.md) |  Fires when the the canvas is initialized. |
 |  ![Public event](https://www.graphicsmill.com/docs/gm5/icons/pubevent.gif) |  [invokingCallbackRequest](https://www.graphicsmill.com/docs/gm5/E_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_invokingCallbackRequest.htm.md) |  Fires before the callback is initiated by the canvas. |
 |  ![Public event](https://www.graphicsmill.com/docs/gm5/icons/pubevent.gif) |  [requestComplete](https://www.graphicsmill.com/docs/gm5/E_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_requestComplete.htm.md) |  Fires when the request is completed. |
 |  ![Public event](https://www.graphicsmill.com/docs/gm5/icons/pubevent.gif) |  [sendingRequest](https://www.graphicsmill.com/docs/gm5/E_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_sendingRequest.htm.md) |  Fires when the request is about to be sent. |
 |  ![Public event](https://www.graphicsmill.com/docs/gm5/icons/pubevent.gif) |  [statusChanged](https://www.graphicsmill.com/docs/gm5/E_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_statusChanged.htm.md) |  Fires when the bitmap status is changed. |
 |  ![Public event](https://www.graphicsmill.com/docs/gm5/icons/pubevent.gif) |  [vObjectCreated](https://www.graphicsmill.com/docs/gm5/E_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_vObjectCreated.htm.md) |  Fires when a v-object is created. |
 |  ![Public event](https://www.graphicsmill.com/docs/gm5/icons/pubevent.gif) |  [zoomChanged](https://www.graphicsmill.com/docs/gm5/E_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas_zoomChanged.htm.md) |  Fires when zoom of the canvas is changed. |
   
## 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)
