# GH_PaletteStyle 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_PaletteStyle
```

Contains all the colours for a single capsule palette.

## Constructors

- [GH_PaletteStyle](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-palettestyle/ctor.md): (3 overloads) Construct a new GH_Box_Palette_Colours instance.

## Fields

- [m_edge](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-palettestyle/m-edge.md)
- [m_fill](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-palettestyle/m-fill.md)
- [m_text](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-palettestyle/m-text.md)

## Properties

- [Edge](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-palettestyle/edge.md): Gets or sets the edge of this style.
- [Fill](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-palettestyle/fill.md): Gets or sets the fill of this style.
- [Text](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-palettestyle/text.md): Gets or sets the text of this style.

## Methods

- [CreateBrush](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.canvas.gh-palettestyle/createbrush.md): Create a fill brush. At low zoom levels the brush will be solid colour, at medium to high zoom levels the brush will have a gradient.
