See Also

Enumerations

Name Values
This class exposes no enumerations.

Constants

Name Type Value
Style_2D Integer 2
Style_Aqua Integer 1
Style_DarkBlue Integer 4
Style_DarkGreen Integer 5
Style_Graphite Integer 0
Style_Office Integer 3
Syle_Simple Integer 6
Style_System Integer 7

Events

Definition Description
ItemMouseEnter(item as GraffitiAccordionItem) Raised when the mouse enters the header of an AccordionItem.
ItemMouseExit(item as GraffitiAccordionItem) Raised when the mouse exits the header of an AccordionItem.
PanelChange(NewIndex as Integer) Raised when the user navigates to a new panel.

Methods

Definition Description
AddItem(newItem as GraffitiAccordionItem) Adds a new item to the accordion.
InsertItem(index as Integer, newItem as GraffitiAccordionItem) Inserts a new item at the given index.
Item(index as Integer) as GraffitiAccordionItem Returns the item at the specified index.
ItemCount() as Integer Returns the number of items currently added to the accordion.
RemoveAll() Removes all items from the accordion.
RemoveItem(index as Integer) Removes the item at the given index.

Properties

Name Type Default Value Description
BackColor Color &c000000 The background color of the control.
Bold Boolean False Determines whether the accordion items are shown with bold text.
BorderColor Color &c000000 Determines the border color of the class when UseCustomColors is True.
HeaderHeight Integer 20 The height of the accordion items.
Italic Boolean False Determines whether the accordion items are shown with italic text.
ItemBackColor Color &c000000 Determines the background color of header items when UseCustomColors is True.
ItemBackColorOver Color &c000000 Determines the background color of header items that the mouse is hovering over when UseCustomColors is True.
ItemBackColorSelected Color &c000000 Determines the background color of header items that are currently selected when UseCustomColors is True.
Items() GraffitiAccordionItem Nil The array of items.
SelectedIndex Integer -1 The currently selected item index.
Style Integer 0 The visual appearance of the items.
TextColor Color &c000000 Determines the color of the text when UseCustomColors is True.
TextColorOver Color &c000000 Determines the color of the text when the mouse is hovering over items and UseCustomColors is True.
TextColorSelected Color &c000000 Determines the color of the test when the item is selected and UseCustomColors is True.
TextFont String “system” The font used to draw the text for the items.
TextSize Integer 0 The size of the text used to draw the items.
TextShadow Boolean True When True, a shadow is drawn just below and to the left of the text of GraffitiAccordionItems.
Underline Boolean False Determines whether the accordion items are shown with underlined text.
UseCustomColors Boolean False Draws items using the defined colors in the class’s properties.

Examples

There are currently no examples for this class.