# GraffitiThumbList
Class Inherits GraffitiUIControl
## Enumerations
| Name | Value | Description |
| --- | :---: | --- |
| Types | Grid <br > Horizontal <br > Vertical | (None) |
## Event Definitions
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| ConstructContextualMenu | base As DesktopMenuItem <br> item As GraffitiThumbListItem <br> x As Integer <br> y As Integer | Boolean | This event is called when it is appropriate to display a contextual menu for the control.
|
| ContextualMenuItemSelected | selectedItem as DesktopMenuItem <br> item as GraffitiThumbListItem | Boolean | Raised when the user has selected an item from the contextual menu. |
| ItemDoublePressed | item as GraffitiThumbListItem <br> button as GraffitiUIControl.MouseButtons | (None) | This event is raised when the user double-presses an item. |
| ItemDragStart | item as GraffitiThumbListItem | Boolean | This event is raised when the user begins dragging an item. Return True to cancel drag operation. |
| ItemMouseEnter | item as GraffitiThumbListItem | (None) | This event is raised when the user's mouse enters an item's display area. |
| ItemMouseExit | item as GraffitiThumbListItem | (None) | This event is raised when the user's mouse exits an item's display area. |
| ItemPressed | item as GraffitiThumbListItem <br> button as GraffitiUIControl.MouseButtons | (None) | This event is raised when the user single-presses an item. |
| ItemReordered | item As GraffitiThumbListItem <br> oldIndex As Integer <br> newIndex As Integer | (None) | This event is raised when a user's drag operation has completed. |
| Opening | (None) | (None) | This event is raised when the control has been initialized and is a ready-to-draw state. |
| SelectionChanged | (None) | (None) | This event is raised when the selected item or items has changed, either programmatically or via user interaction. |
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| Add | item As GraffitiThumbListItem | (None) | Adds the item to the control. |
| AddAt | index As Integer <br> item As GraffitiThumbListItem | (None) | Adds the item to the control at the specified index. |
| AddDirectory | f as FolderItem <br> recurse as Boolean = False | (None) | Adds an entire directory's image contents to the control. This may vary by operating system. |
| AddItems | ParamArray items() as GraffitiThumbListItem | (None) | Adds multiple items to the control. |
| AddItems | items() as GraffitiThumbListItem | (None) | Adds multiple items to the control. |
| DeselectAll | (None) | (None) | Deselects all items. |
| IndexOf | item As GraffitiThumbListItem | Integer | Returns the index of the item within the control's item array. |
| Invalidate | item As GraffitiThumbListItem | (None) | Invalidates an item, signalling that it should be redrawn entirely on the next Paint event. |
| InvalidateAll | (None) | (None) | Invalidates all items. |
| ItemAt | index As Integer | GraffitiThumbListItem | Returns the item at the specified index. |
| LastIndex | (None) | Integer | Returns the index of the last item within the control's items array. |
| Remove | item As GraffitiThumbListItem | (None) | Removes the specified item. |
| RemoveAll | (None) | (None) | Removes all items from the control. |
| RemoveAt | index As Integer | (None) | Removes the item at the specified index from the control. |
| ScrollTo | item As GraffitiThumbListItem | (None) | Scrolls the item into view. |
| SelectAll | (None) | (None) | Selects all items within the control. |
| SelectedItem | (None) | GraffitiThumbListItem | Returns the first selected item in the control's items array. |
| SelectedItem | assigns item As GraffitiThumbListItem | (None) | Sets the item as the only selected item by deselecting all other items, then setting this item's Selected property value to True. |
| SelectedItems | (None) | GraffitiThumbListItem | Returns an array of all currently selected items. |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| AllowReorder | Boolean | (None) | Determines whether the user is allowed to drag and drop items to reorder. |
| BackgroundColor | ColorGroup | (None) | Color drawn to the control's display background. |
| BorderColor | ColorGroup | (None) | Color drawn to the control's outter edge. |
| DropIndicatorColor | ColorGroup | (None) | (None) |
| ItemBackgroundColor | ColorGroup | (None) | (None) |
| ItemBackgroundColorSelected | ColorGroup | (None) | (None) |
| ItemBorderColor | ColorGroup | (None) | (None) |
| ItemBorderColorSelected | ColorGroup | (None) | (None) |
| ItemSize | Integer | (None) | Dimensions of items when drawn within the control's display area. |
| ItemTextBold | Boolean | (None) | (None) |
| ItemTextColor | ColorGroup | (None) | Color used to draw text of all items which do not override with their own property value. |
| ItemTextColorDisabled | ColorGroup | (None) | Color used to draw text of all items which do not override with their own property value. |
| itemTextColorSelected | ColorGroup | (None) | Color used to draw text of all items which do not override with their own property value. |
| ItemTextFontName | String | (None) | (None) |
| ItemTextFontSize | Integer | (None) | (None) |
| ItemTextItalic | Boolean | (None) | (None) |
| ItemTextUnderline | Boolean | (None) | (None) |
| Multiselect | Boolean | (None) | Controls how selection is handled within the control. |
| Type | Types | (None) | Determines how items are displayed and their interactions. |