# CommandSearchPicker
Class Inherits GraffitiProEditor.ListPicker
## About
Internal `ListPicker` behind command search, opened by the contextual toolbar's search button, `Editor.ShowCommandSearch`, or Shift-Command-P. The editor fills `Items` with every enabled tool, `Groups` with the group each belongs to, and `SearchOnly` with True for the node types to insert, which are listed only once a search is typed unless they are toolbar items collapsed into the search button; choosing one presses it as if it were on the toolbar.
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| Constructor | (None) | (None) | Creates command search with room for nine tools. |
| DrawItem | g As Graphics <br> index As Integer <br> frame As Rect <br> highlighted As Boolean | (None) | Draws the tool's icon, name, and group. |
| ItemCaption | index As Integer | String | Returns the tool's tooltip, which names it, or its caption. |
| ItemCount | (None) | Integer | Returns the number of tools. |
| ItemMatches | index As Integer <br> query As String | Boolean | Searches the tool's name, caption, group, and identifier. |
| ItemShownWithoutSearch | index As Integer | Boolean | Returns False for the tools listed only as search results. |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| Groups() | String | (None) | Gets or sets the group of each tool, drawn at the trailing edge and searched. |
| Items() | GraffitiProEditor.ToolbarItem | (None) | Gets or sets the tools listed. |
| SearchOnly() | Boolean | (None) | Gets or sets whether each tool is listed only once a search is typed. |