# GH_CanvasViewportChangedEventArgs class

Namespace: [Grasshopper.GUI.Canvas](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.gui.canvas.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public class GH_CanvasViewportChangedEventArgs : EventArgs
```

These arguments are used in the ViewportChanged event on GH_Canvas.

## Properties

- [Canvas](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-canvasviewportchangedeventargs/canvas.md): Gets the Canvas whose viewport was changed.
- [Viewport](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-canvasviewportchangedeventargs/viewport.md): Gets the new Viewport.
