# GraffitiSelectGroup
Class Inherits GraffitiWebUIControl
## About
This is a beautiful class that can easily replace any number of UI elements. It behaves similarly to a RadioButton group, but allows for single or multiple selection, a title, subtitle, and three nicely drawn icon types.
## Compatibility
### Framework API Version
| 1.0 | 2.0 |
| :---: | :---: |
| True | True |
### Web
| 32-Bit | 64-Bit |
| :---: | :---: |
| True | True |
## Enumerations
| Name | Value | Description |
| --- | :---: | --- |
| SelectionModes | Single <br> Multiple | Allowed selection types. |
| ValueTypes | Check <br> Radio <br> Dash | Icon types displayed in items when Value = True |
## Event Definitions
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| Closing | (None) | (None) | |
| HeightChanged | (None) | (None) | Raised when AdaptiveHeight = True and the height of the control has changed. |
| ItemContextPressed | item as GraffitiSelectGroupItem <br> position as Point | (None) | Raised when the user context-presses an item. |
| ItemPressed | item as GraffitiSelectGroupItem | (None) | Raised when the user has pressed an item. |
| Opening | (None) | (None) | |
| Shown | (None) | (None) | |
| ValueChanged | (None) | (None) | Raised when an item has been selected or deselected. |
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| Add | item as GraffitiSelectGroupItem | (None) | Adds the specified item to the control. |
| AddAt | index as Integer <br> item as GraffitiSelectGroupItem | (None) | Adds the specified item at the supplied index. |
| DeselectAll | (None) | (None) | Deselects all currently selected items. |
| DeselectItem | item as GraffitiSelectGroupItem | (None) | Deselects the specified item. |
| IndexOf | item as GraffitiSelectGroupItem | Integer | Returns the index of the item within the internal items array, or -1 when not found. |
| ItemAt | index as Integer | GraffitiSelectGroupItem | Returns the item as the specified index within the internal items array, or Nil when not found. |
| LastIndex | (None) | Integer | The index of the last item within the internal items array. |
| Remove | item as GraffitiSelectGroupItem | (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. |
| SelectAll | (None) | (None) | |
| SelectedItem | (None) | GraffitiSelectGroupItem | Returns the first selected item. |
| SelectedItems | (None) | GraffitiSelectGroupItem | Returns an array of all selected items. |
| SelectedItemText | (None) | String | Returns the text of the first selected item. |
| SelectItem | item as GraffitiSelectGroupItem | (None) | Selects the specified item. |
| ToggleSelection | (None) | (None) | Toggles all item values. |
| Attributes | Hidden | UpdateProperty | |
| Attributes | Hidden | UpdatePropertyMultiple | |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| AdaptiveHeight | Boolean | Nil | When True, the control will adapt its height to fit its contents. |
| AllowDeselectOnSingle | Boolean | Nil | When True and SelectionMode = Single, the selected item can be deselected by the user. |
| Enabled | Boolean | Nil | |
| SelectionMode | SelectionModes | Nil | Determines how user selection is handled. |
| Subtitle | String | Nil | Text displayed above items as a subtitle. |
| SubtitleIndicator | WebUIControl.Indicators | Nil | Bootstrap indicator applied to subtitle text. |
| SubtitleStyle | GraffitiStyle | Nil | GraffitiStyle applied to subtitle text. |
| Title | String | Nil | Text displayed at the top of the control as title. |
| TitleIndicator | WebUIControl.Indicators | Nil | Bootstrap indicator applied to title text. |
| TitleStyle | GraffitiStyle | Nil | GraffitiStyle applied to title text. |
| ValueType | ValueTypes | Nil | Determines the icon type to display in items. |