# GH_MaterialPreviewControl class

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

```cs
[DesignerGenerated]
public class GH_MaterialPreviewControl : UserControl
```

Offers a frontend for Grasshopper Material previews.

## Properties

- [Colour](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-materialpreviewcontrol/colour.md): Gets or sets the colour of this preview.
- [Selected](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-materialpreviewcontrol/selected.md): Gets or sets the Selected state of this preview. Selected previews have thick borders drawn around them.
- [SelectOnClick](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-materialpreviewcontrol/selectonclick.md): Gets or sets whether this control can be selected.

## Methods

- [Dispose](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-materialpreviewcontrol/dispose.md)

## Events

- [ColourChanged](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-materialpreviewcontrol/colourchanged.md)
- [MaterialImagePostPaint](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-materialpreviewcontrol/materialimagepostpaint.md)
- [SelectedChanged](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-materialpreviewcontrol/selectedchanged.md)
