# GH_DocDiagramPainter 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_DocDiagramPainter
```

This class paints diagrammatic images of a collection of objects.

## Properties

- [BoundingBox](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-docdiagrampainter/boundingbox.md): Gets the 2D domain of the diagram in canvas coordinates.
- [DrawingBox](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-docdiagrampainter/drawingbox.md): Gets the 2D domain of the diagram in image coordinates.
- [IgnoreSelectedStates](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-docdiagrampainter/ignoreselectedstates.md): Gets or sets the Ignore Selected State flag. When set to True, selected objects are not drawn in a different colour.
- [Image](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-docdiagrampainter/image.md): Gets the diagram image (only available after a call to PaintDiagram().
- [Size](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-docdiagrampainter/size.md): Gets the width and height (in pixels) of this diagram image.
- [Zoom](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-docdiagrampainter/zoom.md): Gets the zoom factor for this diagram.

## Methods

- [MapPoint](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-docdiagrampainter/mappoint.md): (2 overloads)
- [MapRectangle](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-docdiagrampainter/maprectangle.md)
- [MapX](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-docdiagrampainter/mapx.md): (2 overloads)
- [MapY](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-docdiagrampainter/mapy.md): (2 overloads)
- [PaintDiagram](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-docdiagrampainter/paintdiagram.md): (2 overloads) Paint a diagram of a document.
- [UnmapPoint](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-docdiagrampainter/unmappoint.md)
- [UnmapRectangle](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-docdiagrampainter/unmaprectangle.md)
- [UnmapX](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-docdiagrampainter/unmapx.md)
- [UnmapY](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-docdiagrampainter/unmapy.md)
