---
title: "CanvasViewer..::.contentWidth Property "
canonical: https://www.graphicsmill.com/docs/gm5/P_J_Aurigma_GraphicsMill_AjaxControls_CanvasViewer_contentWidth.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/)

# CanvasViewer.contentWidth Property 
 
Gets a value that represents the width (in pixels) of the [CanvasViewer](https://www.graphicsmill.com/docs/gm5/T_J_Aurigma_GraphicsMill_AjaxControls_CanvasViewer.htm.md) content taking into account the screen horizontal resolution and zoom value.
 
**Namespace:** [Aurigma.GraphicsMill.AjaxControls](https://www.graphicsmill.com/docs/gm5/N_J_Aurigma_GraphicsMill_AjaxControls.htm.md)
 **Assembly:** Aurigma.GraphicsMill.AjaxControls.VectorObjects (in Aurigma.GraphicsMill.AjaxControls.dll)
 
## Syntax
  
```
function get_contentWidth();
```
 
### Property Value
The value which represents the width (in pixels) of the [CanvasViewer](https://www.graphicsmill.com/docs/gm5/T_J_Aurigma_GraphicsMill_AjaxControls_CanvasViewer.htm.md) content.
 
## Remarks
  
This property corresponds to [CanvasViewer.ContentWidth](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_AjaxControls_CanvasViewer_ContentWidth.htm.md) server-side member.
   
## See Also

### Reference

- [CanvasViewer Class](https://www.graphicsmill.com/docs/gm5/T_J_Aurigma_GraphicsMill_AjaxControls_CanvasViewer.htm.md)
- [Aurigma.GraphicsMill.AjaxControls Namespace](https://www.graphicsmill.com/docs/gm5/N_J_Aurigma_GraphicsMill_AjaxControls.htm.md)
