GraffitiSuite Docs
Docs
Graffitithumblist
Loading document parsing libraries...
# 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 ## Compatibility ### Framework API Version | 1.0 | 2.0 | | :---: | :---: | | False | True | ### Console | 32-Bit | 64-Bit | | :---: | :---: | | True | True | ### Desktop | 32-Bit | 64-Bit | | :---: | :---: | | True | True | ### iOS | 32-Bit | 64-Bit | | :---: | :---: | | False | True | ### Web | 32-Bit | 64-Bit | | :---: | :---: | | True | True | ## Enumerations | Name | Value | Description | | --- | :---: | --- | | Types | Grid <br> Horizontal <br> Vertical | Supported display models. | ## Event Definitions | Name | Parameters | Return Type | Description | | --- | :---: | :---: | --- | | Closing | (None) | (None) | | | ItemPressed | item as GraffitiThumbListItem | (None) | Raised when an item is pressed. | | SelectionChange | SelectedItems() as GraffitiThumbListItem | (None) | Fired when the selected items within the control has changed due to user interaction. | | Shown | (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. | | 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 . | | Attributes | Hidden = True | UpdateProperty | | | Attributes | Hidden = True | UpdatePropertyMultiple | | ## Properties | Name | Type | Default Value | Description | | --- | :---: | :---: | --- | | Enabled | Boolean | Nil | | | ImageSize | Integer | Nil | Size applied to image. Width or Height determined by Type property value. | | Multiselect | Boolean | Nil | When True, users can toggle selection using subsequent clicks on items. | | Type | GraffitiThumbList.Types | Nil | Determines how items are arranged in the display. |