# ColorPalettePicker
Class Inherits GraffitiProEditor.GridPicker
## About
Internal `GridPicker` behind the toolbar's text color and highlight buttons. `SetColors` fills it with an Automatic cell (the theme's text color, or no highlight), a palette, the recently chosen colors, and a Custom cell that opens the system color panel. Hovering a swatch previews it.
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| CaptionText | (None) | String | Returns the hovered cell's name, or Title. |
| CellAtPoint | x As Double <br> y As Double <br> ByRef row As Integer <br> ByRef column As Integer | Boolean | Finds the cell at the supplied point, skipping the empty end of the last row. |
| CellValue | row As Integer <br> column As Integer | Variant | Returns the Color of a swatch, "automatic", or "custom". |
| Constructor | (None) | (None) | Creates a palette of eight columns that previews the hovered color. |
| DrawCell | g As Graphics <br> row As Integer <br> column As Integer <br> frame As Rect | (None) | Draws a swatch, the Automatic cell, or the Custom cell. |
| PreviewValue | row As Integer <br> column As Integer | Variant | Returns the cell value, or Nil for Custom. |
| SetColors | automaticName As String <br> palette() As Color <br> recent() As Color <br> customName As String | (None) | Fills the palette: an Automatic cell, the palette colors, the recent colors, and a Custom cell. |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| CellNames() | String | (None) | Gets or sets the name of each cell, shown in the caption while it is hovered. |
| CellValues() | Variant | (None) | Gets or sets the value of each cell: a Color, "automatic", or "custom". |
| Title | String | (None) | Gets or sets the caption shown before a cell is hovered. |