# GraffitiTabPanel
Class Inherits GraffitiUIControl
## About
GraffitiTabPanel is a system-styled component that uses the Mobile SegmentButton control along with some custom drawing and positioning magic to bring a beautifully-animated TabPanel to your mobile applications.
## Preview
## Compatibility
### Framework API Version
| 1.0 | 2.0 |
| :---: | :---: |
| False | True |
### Console
| 32-Bit | 64-Bit |
| :---: | :---: |
| True | True |
### Desktop
| 32-Bit | 64-Bit |
| :---: | :---: |
| True | True |
### iOS
| 32-Bit | 64-Bit |
| :---: | :---: |
| False | True |
### Web
| 32-Bit | 64-Bit |
| :---: | :---: |
| True | True |
## Event Definitions
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| Closing | (None) | (None) | (None) |
| Opening | (None) | (None) | (None) |
| SelectionChanged | (None) | (None) | Raised when the currently visible tab has changed and any animations are complete. |
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| Add | item as GraffitiTabPanelItem | (None) | Adds a new tab and panel to the control. |
| AddAt | index as Integer <br> item as GraffitiTabPanelItem | (None) | Adds a new tab and panel to the control at the specified index. |
| IndexOf | item as GraffitiTabPanelItem | Integer | Returns the index of the specified MobileSegment within the internal array. |
| ItemAt | index as Integer | GraffitiTabPanelItem | Returns the panel at the specified index. |
| LastIndex | (None) | Integer | Returns the last index of items in the internal array. |
| Remove | item as GraffitiTabPanelItem | (None) | Removed the specified item and its associated container. |
| RemoveAll | (None) | (None) | Remove all currently added items. |
| RemoveAt | index as Integer | (None) | Removes the item at the specified index. |
| SegmentAt | index as Integer | GraffitiTabPanelItem | Returns the MobileSegment at the specified index within the internal array. |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| AnimationSpeed | Integer | 250 | Length of animations in milliseconds. |
| SelectedIndex | Integer | (None) | Index of the currently selected tab. |
| SelectedItem | GraffitiTabPanelItem | (None) | Returns the currently selected panel. |