# GraffitiAvatar
Class Inherits GraffitiWebUIControl
## About
GraffitiAvatar is an amazingly simple yet beautiful component for displaying a user’s chosen image within your app and allowing them to interact with it.Features:
## Compatibility
### Framework API Version
| 1.0 | 2.0 |
| :---: | :---: |
| True | True |
### Web
| 32-Bit | 64-Bit |
| :---: | :---: |
| True | True |
## Event Definitions
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| DoublePressed | (None) | (None) | Raised when the user double clicks the avatar's visible area. |
| MouseEnter | (None) | (None) | (None) |
| MouseExit | (None) | (None) | (None) |
| Open | (None) | (None) | (None) |
| Pressed | (None) | (None) | Raised when the user single clicks the avatar's visible area. |
| Shown | (None) | (None) | (None) |
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| UserImage | assigns file as GraffitiWebFile | (None) | Sets the UserImage property to the appropriate value for a GraffitiWebFile. |
| UserImage | assigns image as Picture | (None) | Sets the UserImage property to the appropriate value for a GraffitiWebFile. |
| UserImage | assigns file as WebFile | (None) | Sets the UserImage property to the appropriate value for a GraffitiWebFile. |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| BackgroundColor | Color | (None) | Color to display behind user's initials. |
| BorderColor | Color | (None) | Color applied to the outside edge of the avatar. |
| BorderSize | Integer | (None) | Size, in pixels, of the border. |
| Enabled | Boolean | (None) | (None) |
| HasStatus | Boolean | (None) | Determines whether the status icon is visible. |
| StatusColor | Color | (None) | Controls the color displayed within the status icon. |
| TextColor | Color | (None) | Color used for text within the avatar. |
| UserImage | String | (None) | URL to the user's avatar image. Use one of the UserImage methods to automatically set this value for specific object types. |
| UserName | String | (None) | Name to be used for initial extraction. |