Table of Contents
Preview #
About #
GraffitiAccordion is a beautiful, animated class that allows developers to embed multiple containers within their UI and easily switch between them.
Enumerations #
This class exposes no enumerations.
Constants #
This class exposes no constants.
Events #
Name | Parameters | Return Type | Description |
---|---|---|---|
SelectionChanged | None | None | Raised when the currently visible container has changed. |
Methods #
Name | Parameters | Return Type | Description |
---|---|---|---|
Add | item as GraffitiAccordionItem | None | Adds a new item to the control. |
AddAt | index as Integer item as GraffitiAccordionItem | None | Adds a new item to the control at the specified index. |
ItemAt | index as Integer | GraffitiAccordionItem | Returns the container at the specified index in the internal array. |
IndexOf | item as GraffitiAccordionItem | Integer | Returns the index of the specified item within the internal array. |
LastIndex | None | Integer | Returns the last index of items in the internal array. |
Remove | item as GraffitiAccordionItem | None | Removed the specified item and its associated item. |
RemoveAll | None | None | Remove all currently added items. |
RemoveAt | index as Integer | None | Removes the item at the specified index. |
Properties #
Name | Type | Default Value | Description |
---|---|---|---|
AnimationEnabled | Boolean | True | Determines whether container movement is animated. |
AnimationLength | Integer | 1500 | Length of animations in milliseconds. |
BackgroundColor | ColorGroup | Nil | Color drawn to the background of the component. |
BadgeFont | Font | Nil | Font used to draw the text within item badges. |
BorderColor | ColorGroup | Nil | Color used to draw the component’s border. |
BorderRadius | Integer | 0 | Height and width of corner radius. |
ExpanderColorActive | ColorGroup | Nil | Color used to draw the expander icon of the currently active item. |
ExpanderColorInactive | ColorGroup | Nil | Color used to draw the expander icon of inactive items. |
ExpanderIconActive | Picture | Nil | Picture drawn as the expander icon for the currently active item. |
ExpanderIconInactive | Picture | Nil | Picture drawn as the expander icon for inactive items. |
ExpanderVisible | Boolean | True | Determines whether expander icons are drawn. |
HeaderHeight | Double | 26 | Height of item headers drawn in the display. |
SelectedItem | GraffitiAccordionItem | Nil | Currently selected item. |