# GraffitiOrgChartItem
Class
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| Sub | AddItem | (None) | Adds the specified item as a child of the root node. |
| Sub | Constructor | (None) | Creates a new instance. |
| Function | Item | As | Returns the item specified by the index. |
| Function | LastIndex | As | Returns the index of the last child of the root node. |
| Sub | RemoveAll | (None) | Removes all items. |
| Sub | RemoveItem | (None) | Removes the item specified by index. |
| Sub | RemoveItem | (None) | Removes the item specified by index. |
| Sub | ScrollTo | (None) | Scrolls to the specified node. If item is Nil the root node is centered. |
| Function | toJSON | As | Exports the current items to a JSONItem. |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| Attributes | ID | String | |
| Attributes | Items | Nil | |
| Attributes | mContent | String | |
| Attributes | mTitle | String | |
| Content | String | Nil | Content of the item. |
| ContentEditable | Boolean | Nil | Determines whether the content can be edited by double-click. |
| HasAddButton | Boolean | Nil | If True, a button is added to the item's display that will create a new child when clicked. |
| HasRemoveButton | Boolean | Nil | If True, a button is added to the item's display that will delete the item when clicked. |
| mOwner | GraffitiUpdateInterface | Nil | |
| Parent | GraffitiOrgChartItem | Nil | The parent of this item, or Nil if the parent is the root node. |
| Private | As | = | |
| Private | As | = | |
| Private | As | = | |
| Private | As | = | |
| Private | As | = | |
| Tag | Variant | Nil | Data storage. |
| Title | String | Nil | Title of the item. |
| TitleEditable | Boolean | Nil | Determines whether the title text can be edited by double-click. |