# GraffitiNote
Class Inherits GraffitiUIControl
## About
GraffitiNote is a simple yet effective class used to display information via the user interface that should draw a user’s attention. With four different pre-built note types ranging from “Information” to “Error”, and a custom type where custom colors can be applied by the developer, GraffitiNote is very versatile.
The class also supports variable height based on content, and compact or extended modes.
## 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" |
## Enumerations
| Name | Value | Description |
| --- | :---: | --- |
| NoteStyles | BarLeft <br > BarRight <br > BarTop <br > BarBottom <br > NoBar | Supported drawing styles. |
| NoteTypes | Information <br > Success <br > Warning <br > Error <br > Custom <br > System | Support informational types. |
## Event Definitions
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| ButtonPressed | (None) | (None) | Raised when the note's button has been pressed. |
| ClosePressed | (None) | Boolean | Raised when the note's close button has been pressed by the user. |
| HeightChanged | (None) | (None) | If the AutoHeight property is set to true, this event will fire when the height has changed to fit the contents. |
| LinkPressed | index as Integer <br> content as String | (None) | Raised when a link in the note has been pressed. |
| Open | (None) | (None) | (None) |
| Pressed | position as Point | (None) | Raised when the note has been pressed by the user. |
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| Constructor | (None) | (None) | Creates a new instance of the control. |
| Constructor | container as DesktopContainer | (None) | Creates a new instance of the control. |
| Constructor | title as String <br> content as String | (None) | Creates a new instance of the control. |
| Rolldown | (None) | (None) | Animate showing the note. |
| Rollup | (None) | (None) | Animate hiding the note. |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| AnimationTime | Integer | (None) | Length of the roll aniamtion in milliseconds. |
| AutoHeight | Boolean | (None) | If True, the control will resize to fit the contents. |
| BackgroundColor | ColorGroup | (None) | Color used to draw the background when Type is set to NoteTypes.Custom |
| BarColor | ColorGroup | (None) | Color used to draw the decorative bar when Type is set to NoteTypes.Custom |
| BarSize | Integer | (None) | Size of the decorative bar when Style other than NoteStyles.NoBar |
| BorderRadius | Integer | (None) | Radius of control corners. |
| BorderSize | Integer | (None) | Size of the border drawn around the outter edge of the control, color is taken from BarColor. |
| ButtonFontBold | Boolean | (None) | Determines the font weight of the text drawn within the button. |
| ButtonFontItalic | Boolean | (None) | Determines the obliqueness of the text drawn within the button. |
| ButtonFontName | String | (None) | Determines which font face to use when drawing the button's text. |
| ButtonFontSize | Integer | (None) | Determines the size of the font used to draw the button's text. |
| ButtonFontUnderline | Boolean | (None) | Determines whether the button's text is drawn underlined. |
| ButtonText | String | (None) | Caption of the button. |
| CloseButton | Boolean | (None) | If True, will show a close button in the display which animates resizing the height to 0. |
| CloseSize | Integer | (None) | Size, in points, of the close button icon. |
| Compact | Boolean | (None) | If False, the title will be positioned on its own line with the content below. |
| Content | String | (None) | The content of the note. |
| ContentBold | Boolean | (None) | The weight of the font used for the Content. |
| ContentColor | ColorGroup | (None) | Color used to draw the note's content. |
| ContentContainer | DesktopContainer | (None) | Container that is embedded within the note. Overrides Title, Content, and Icon drawing. |
| ContentFont | String | (None) | The font used in drawing the Content. |
| ContentItalic | Boolean | (None) | If True, the content will be drawn italicized. |
| ContentSize | Integer | (None) | Size applied to the font for drawing Content. |
| ContentUnderline | Boolean | (None) | If True, the content will have an underline. |
| Icon | Picture | (None) | Icon drawn to the far left of the note. |
| IconSize | Double | (None) | Size to draw the icon. |
| LinkColor | ColorGroup | (None) | Color to use for drawing links. Uses system colors when Nil. |
| LinkColorHover | ColorGroup | (None) | Color used for drawing hovered links. Uses system colors when Nil. |
| Margin | Integer | (None) | Outside margin used for drawing Title and Content. If Compact = False, then the left margin of content = Margin*2 |
| MaxHeight | Integer | (None) | Sets a maximum height for the control to display. Added to fix a crash when the height of the component would exceed acceptable limits. |
| Style | NoteStyles | (None) | Position of the decorative bar in the display. |
| Tag | Variant | (None) | Developer storage. |
| Title | String | (None) | Title of the note. |
| TitleBold | Boolean | (None) | Font weight of Title. |
| TitleColor | ColorGroup | (None) | Color applied to Title when Type = NoteTypes.Custom. |
| TitleFont | String | (None) | Font applied to Title |
| TitleItalic | Boolean | (None) | If true, Title will be drawn italicized. |
| TitleSize | Integer | (None) | Font size of Title. |
| TitleUnderline | Boolean | (None) | If true, Title will be underlined. |
| Type | NoteTypes | (None) | The drawing style of the note. |