---
title: "CanvasData..::.applyState Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_CanvasData_applyState.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/)

# CanvasData.applyState Method 
 
Applies the canvasData state to the specified [Canvas](https://www.graphicsmill.com/docs/gm5/T_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas.htm.md).
 
**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
  
```
Aurigma.GraphicsMill.AjaxControls.VectorObjects.CanvasData.applyState = function(canvasData, canvasObject);
```
 
### Parameters
 
 - canvasData
     - Type: [Aurigma.GraphicsMill.AjaxControls.VectorObjects.CanvasData](https://www.graphicsmill.com/docs/gm5/T_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_CanvasData.htm.md)
The state to apply.

 - canvasObject
     - Type: [Aurigma.GraphicsMill.AjaxControls.VectorObjects.Canvas](https://www.graphicsmill.com/docs/gm5/T_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Canvas.htm.md)
Canvas to apply the state to.
   
## See Also

### Reference

- [CanvasData Class](https://www.graphicsmill.com/docs/gm5/T_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_CanvasData.htm.md)
- [Aurigma.GraphicsMill.AjaxControls.VectorObjects Namespace](https://www.graphicsmill.com/docs/gm5/N_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects.htm.md)
