# GraffitiCard
Class Inherits GraffitiSuite.BaseCanvas
## About
GraffitiCard is a desktop implementation of popular web components meant to convey information in an encapsulated form with a call-to-action button.
**
Features:
**
*
Optional Title, Image, Header, Subheader, Content, and Button areas
*
Dark Mode aware
*
Text is fully customizable
*
Auto-height support for variable content
## Preview

Previous
Next
## Compatibility
### Framework API Version
| 1.0 | 2.0 |
| :---: | :---: |
| True | True |
### Desktop
| 32-Bit | 64-Bit |
| :---: | :---: |
| True | True |
## Attributes
| Name | Value |
| --- | --- |
| DefaultEvent | "Action" |
## Enumerations
| Name | Value | Description |
| --- | :---: | --- |
| Alignments | Left <br > Center <br > Right | Possible text alignments. |
## Event Definitions
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| Action | (None) | (None) | Raised when the user clicks the card's button. |
| HeightChanged | (None) | (None) | Raised when the height of the card has changed. Only fires when the AutoHeight property is True. |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| AutoHeight | Boolean | (None) | When True the Card will resize vertically so that its content fills the entire area. |
| BackgroundColor | Color | (None) | Color applied to card background. |
| BorderColor | Color | (None) | Color applied to card border. |
| Button | String | (None) | When length = 0, button will not be shown. |
| ButtonBold | Boolean | (None) | Font weight of button. |
| ButtonBorderRadius | Integer | (None) | Border radius of button object. |
| ButtonColor | Color | (None) | Color applied to button object's background |
| ButtonFontFace | String | (None) | Font used for drawing button text. |
| ButtonFontSize | Integer | (None) | Font size applied to button text. |
| ButtonItalic | Boolean | (None) | If True button text will be italicized. |
| ButtonTextColor | Color | (None) | Color applied to button object's text. |
| ButtonUnderline | Boolean | (None) | Controls underline decoration on button text. |
| Content | String | (None) | Text to be displayed in the content area of the card. |
| ContentAlignment | Alignments | (None) | Drawing position of content. |
| ContentBold | Boolean | (None) | Font weight of content text. |
| ContentFontFace | String | (None) | Font face applied to content text. |
| ContentFontSize | Integer | (None) | Font size used for drawing content text. |
| ContentItalic | Boolean | (None) | When True content text will be italicized. |
| ContentTextColor | Color | (None) | Color applied to content text. |
| ContentUnderline | Boolean | (None) | If True, applies an underline to content text. |
| CornerRadius | Double | (None) | Determines the roundness of the cards' corners. |
| CustomColors | Boolean | (None) | When True, uses the custom color properties for drawing. |
| Header | String | (None) | Text to draw in the header position of the card. |
| HeaderBold | Boolean | (None) | Font weight of header. |
| HeaderFontFace | String | (None) | Font face of header. |
| HeaderFontSize | Integer | (None) | Font size of header. |
| HeaderItalic | Boolean | (None) | When True, makes header text italicized. |
| HeaderTextColor | Color | (None) | Color applied to header text. |
| HeaderUnderline | Boolean | (None) | Applies underline to header text. |
| Image | Picture | (None) | Image displayed below the title and above the header. |
| Subheader | String | (None) | Text displayed below the header and above the content. |
| SubheaderBold | Boolean | (None) | Font weight of the subheader text. |
| SubheaderFontFace | String | (None) | Font face used for subheader text. |
| SubheaderFontSize | Integer | (None) | Font size used for subheader text. |
| SubheaderItalic | Boolean | (None) | When True, subheader text will be italicized. |
| SubheaderTextColor | Color | (None) | Color applied to subheader text. |
| SubheaderUnderline | Boolean | (None) | Applies underline to subheader text. |
| Title | String | (None) | The title of the card. Appears above all other elements. |
| TitleBackgroundColor | Color | (None) | Background color of the titlebar. |
| TitleBold | Boolean | (None) | Font weight of title text. |
| TitleFontFace | String | (None) | Font face of title text. |
| TitleFontSize | Integer | (None) | Font size of title text. |
| TitleItalic | Boolean | (None) | Makes the title text italicized. |
| TitleTextColor | Color | (None) | Applies the specified color to the title text. |
| TitleUnderline | Boolean | (None) | Controls underline decoration on title text. |