# GraffitiAvatarGroup
Class Inherits GraffitiUIControl
## About
GraffitiAvatarGroup allows you to display many avatars for users to interact with. Typically used in scenarios to show what users are participating in an activity or are currently available.
Add as many avatars as you need and this class will collapse to hide those items which cannot be displayed and will draw a “More” button showing the current count of hidden items.
Features:
*
Custom images per item
*
Custom names per item
*
Custom colors per item
*
Automatic name to initials conversion
*
Automatic font sizing
*
Automatic image sizing
## Preview
## 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 |
## Event Definitions
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| DoublePressed | item as GraffitiAvatarGroupItem | (None) | Raised when user double-clicks an avatar in the group. |
| DoublePressedMore | hiddenItems() as GraffitiAvatarGroupItem | (None) | Raised when the user double-clicks the “More” item. |
| FocusMoreOff | hiddenItems() as GraffitiAvatarGroupItem | (None) | Raised when the user releases the "More" item. |
| FocusMoreOn | hiddenItems() as GraffitiAvatarGroupItem | (None) | Raised when the user presses the "More" item. |
| FocusOff | item as GraffitiAvatarGroupItem | (None) | Raised when the releases an item. |
| FocusOn | item as GraffitiAvatarGroupItem | (None) | Raised when the user presses an item. |
| Opening | (None) | (None) | |
| Pressed | item as GraffitiAvatarGroupItem | (None) | Raised when the user clicks an avatar item. |
| PressedMore | hiddenItems() as GraffitiAvatarGroupItem | (None) | Raised when the user clicks the “More” item. |
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| Add | item as GraffitiAvatarGroupItem | (None) | Adds the specified item to the group. |
| IndexOf | item as GraffitiAvatarGroupItem | Integer | Returns the index of the specified item within the internal array. |
| Item | index as Integer | GraffitiAvatarGroupItem | Returns the item at the specified index. |
| LastIndex | (None) | Integer | Returns the index of the last item. |
| Remove | item as GraffitiAvatarGroupItem | (None) | Removes the specified item. |
| RemoveAll | (None) | (None) | Removes all avatar items from the group. |
| RemoveAt | index as Integer | (None) | Removes the item at the specified index. |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| Attributes | computedFont | Font | |