# GraffitiThumbList
Class Inherits GraffitiWebUIControl
## About
This product is a really neat control to display thumbnails of images in your UI and allow users to select them.Features:
*
Adding directories both single and recursively
*
Grid View
*
Horizontal View
*
Vertical View
*
Multiselect
## Preview





Previous
Next
## Warnings
### Linux Support
Support varies by Linux distribution and installed libwebkit library and version.
### Windows Support
Requires the presence of an HTMLViewer on a window or container within the project.
## Compatibility
### Framework API Version
| 1.0 | 2.0 |
| :---: | :---: |
| True | True |
### Desktop
| 32-Bit | 64-Bit |
| :---: | :---: |
| True | True |
## Attributes
| Name | Value |
| --- | --- |
| DefaultEvent | "SelectionChange" |
## Enumerations
| Name | Value | Description |
| --- | :---: | --- |
| Types | Grid <br > Horizontal <br > Vertical | Support display types. |
## Event Definitions
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| Closing | (None) | (None) | (None) |
| ItemClicked | item as GraffitiThumbListItem | (None) | Raised when the user clicks an item. |
| ItemContextClicked | item as GraffitiThumbListItem | (None) | Raised when the user right-clicks an item. |
| ItemMouseEnter | item as GraffitiThumbListItem | (None) | Raised when the user’s mouse enters an item. |
| ItemMouseExit | item as GraffitiThumbListItem | (None) | Raised when the user’s mouse exits an item. |
| SelectionChange | SelectedItems() as GraffitiThumbListItem | (None) | Raised when the selected items has changed. |
| Shown | (None) | (None) | (None) |
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| Add | item as GraffitiThumbListItem | (None) | Adds an item to the control. |
| AddAt | index as Integer <br> item as GraffitiThumbListItem | (None) | Inserts an item at the given index. |
| AddDirectory | f as FolderItem <br> recurse as Boolean = False | (None) | Adds the image contents of a directory to the Items array. To get pictures from only the top-level directory, omit recurse or set to False. |
| Constructor | (None) | (None) | Creates a new instance of the class. |
| DeselectAll | (None) | (None) | Deselects all currently selected items. |
| Item | index as Integer | GraffitiThumbListItem | Returns the item at the specified index. |
| LastIndex | (None) | Integer | Return the index of the last item. |
| Remove | item as GraffitiThumbListItem | (None) | Removes the specified item. |
| RemoveAll | (None) | (None) | Removes all items. |
| RemoveAt | index as Integer | (None) | Removes the item at atIndex. |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| Enabled | Boolean | (None) | (None) |
| ImageSize | Integer | (None) | Size applied to image. Width or Height determined by Type property value. |
| Multiselect | Boolean | (None) | When True, users can toggle selection using subsequent clicks on items. |
| Type | Types | (None) | Determines how items are arranged in the display. |