# CanvasSkin class

Namespace: [Grasshopper2.UI.Skinning](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.ui.skinning.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class CanvasSkin : IStorable
```

Immutable collection of canvas skin settings.

## Constructors

- [CanvasSkin](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.skinning.canvasskin/ctor.md): Create a new canvas skin.

## Fields

- [DefaultDim](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.skinning.canvasskin/defaultdim.md): (static) The default canvas skin used for regular GH documents in dark mode.
- [DefaultLit](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.skinning.canvasskin/defaultlit.md): (static) The default canvas skin used for regular GH documents in bright mode.

## Properties

- [Background](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.skinning.canvasskin/background.md): Gets the canvas background colour, the portion to the left or up of the origin.
- [BackgroundNoise](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.skinning.canvasskin/backgroundnoise.md): Gets the noise strength for the background.
- [Edge](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.skinning.canvasskin/edge.md): Gets the colour of the canvas edge.
- [Foreground](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.skinning.canvasskin/foreground.md): Gets the canvas foreground colour, the portion to the right and bottom of the origin.
- [GridSkin](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.skinning.canvasskin/gridskin.md): Gets the grid properties of this canvas.

## Methods

- [DrawCanvas](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.skinning.canvasskin/drawcanvas.md): Draw this canvas skin to a graphics context.
- [IStorable.Store](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.skinning.canvasskin/grasshopperio-istorable-store.md)
- [Interpolate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.skinning.canvasskin/interpolate.md): Interpolate two canvas skins.
- [WithBackground](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.skinning.canvasskin/withbackground.md): Create a canvas skin with a different background colour.
- [WithEdge](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.skinning.canvasskin/withedge.md): Create a canvas skin with a different edge colour.
- [WithForeground](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.skinning.canvasskin/withforeground.md): Create a canvas skin with a different foreground colour.
- [WithGrid](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.skinning.canvasskin/withgrid.md): Create a canvas skin with different grid properties.
