# GraffitiAvatarGroup
Class Inherits GraffitiSuite.BaseCanvas
## 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


Previous
Next
## Compatibility
### Framework API Version
| 1.0 | 2.0 |
| :---: | :---: |
| True | True |
### Desktop
| 32-Bit | 64-Bit |
| :---: | :---: |
| True | True |
## Attributes
| Name | Value |
| --- | --- |
| DefaultEvent | "Pressed" |
## 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. |
| MouseEnterItem | item as GraffitiAvatarGroupItem | (None) | Raised when the user's mouse enters an avatar item's area. |
| MouseEnterMore | hiddenItems() as GraffitiAvatarGroupItem | (None) | Raised when the user's mouse enters the “More” item. |
| MouseExitItem | item as GraffitiAvatarGroupItem | (None) | Raised when the user's mouse exits an avatar item's area. |
| MouseExitMore | hiddenItems() as GraffitiAvatarGroupItem | (None) | Raised when the user's mouse exits the “More” item's area. |
| 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 |
| --- | :---: | :---: | --- |
| Sub | Add | (None) | Adds the specified item to the group. |
| Function | IndexOf | As | Returns the index of the specified item within the internal array. |
| Function | Item | As | Returns the item at the specified index. |
| Function | LastIndex | As | Last item index in the internal array. |
| Sub | Remove | (None) | Removes the specified item. |
| Sub | RemoveAll | (None) | Removes all avatar items from the group. |
| Sub | RemoveAt | (None) | Removes the item at the specified index. |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| Private | | GraffitiAvatarGroupItem | |
| Private | As | Nil | |
| Private | | GraffitiAvatarGroupItem | |
| Private | As | = | |
| Private | As | Nil | |
| Private | As | Nil | |
| Private | As | Nil | |