# GraffitiBadge
Class Inherits GraffitiSuite.BaseCanvas
## About
GraffitiBadge is a simple yet powerful addition to your UI toolkit. Display responsively-size badges anywhere and everywhere without worrying about font sizes.
Features:
*
Automatic text sizing
*
Custom background color
*
Custom text color
*
ColorGroup support
*
Button functionality
*
Pill display mode
## Preview


Previous
Next
## Attributes
| Name | Value |
| --- | --- |
| DefaultEvent | "Pressed" |
## Event Definitions
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| DoublePressed | (None) | (None) | Raised when the badge is double-clicked or double-pressed. |
| MouseEnter | (None) | (None) | |
| MouseExit | (None) | (None) | |
| Pressed | (None) | (None) | Raised when the badge is clicked or pressed via touch. |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| BackgroundColor | ColorGroup | Nil | Color set applied to the badge's background. |
| Bold | Boolean | Nil | Determines the weight of the font used. |
| BorderRadius | Integer | Nil | Corner radius. Value is overridden if IsPill = True. |
| IsButton | Boolean | Nil | When True, the badge will respond visually to mouse actions. |
| IsPill | Boolean | Nil | When True, the badge displays with more rounded corners. |
| Italic | Boolean | Nil | Determines the obliqueness of the text. |
| Private | As | = | |
| Private | As | = | |
| Private | As | = | |
| Private | As | Nil | |
| Private | As | Nil | |
| Private | As | = | |
| Private | As | = | |
| Private | As | = | |
| Private | As | = | |
| Private | As | = | |
| Private | As | = | |
| Private | As | Nil | |
| Private | As | = | |
| Text | String | Nil | Text to display within the badge. |
| TextColor | ColorGroup | Nil | Color set applied to the badge's foreground. |
| TextFont | String | Nil | Font face used for text display. |
| TextPadding | Integer | Nil | Additional padding added when TextFontSize = -1. |
| Underline | Boolean | Nil | When True, the text will be displayed with the underline decoration. |