# ValueListPicker
Class Inherits GraffitiProEditor.ListPicker
## About
Internal `ListPicker` of captioned values, used by the toolbar's font size, line height, and line spacing panels. The editor fills `Captions` and `Values`, optionally `CaptionSizes` to draw each caption at its size and `Previewable` to keep values such as Custom from being previewed, and sets `CurrentIndex`.
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| Constructor | (None) | (None) | Creates a list of values without a search field, previewing the selected value. |
| DrawItem | g As Graphics <br> index As Integer <br> frame As Rect <br> highlighted As Boolean | (None) | Draws the caption, at its CaptionSizes size when set, with a check mark on CurrentIndex. |
| ItemCaption | index As Integer | String | Returns the caption. |
| ItemCount | (None) | Integer | Returns the number of values. |
| ItemValue | index As Integer | Variant | Returns the value. |
| PreviewValue | index As Integer | Variant | Returns the value, or Nil for one that Previewable marks as not previewable. |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| Captions() | String | (None) | Gets or sets the captions. |
| CaptionSizes() | Double | (None) | Gets or sets the font size each caption is drawn at, or 0 for the standard size. |
| CurrentIndex | Integer | -1 | Gets or sets the index of the current value, which is checked. |
| Previewable() | Boolean | (None) | Gets or sets whether each value can be previewed; missing entries can. |
| Values() | Variant | (None) | Gets or sets the value of each caption. |