Items object
The Items object contains a collection of items. Each item is identified by a handle HITEM. The HITEM is of long type. Each item contains a collection of cells. The number of cells is determined by the number of Column objects in the control. To access the Items collection use Items property of the control. Using the Items collection you can add, remove or change the control items. The Items collection can be organized as a hierarchy or as a tabular data. The Items collection supports the following properties and methods:

NameDescription
AcceptSetParentRetrieves a value indicating whether the SetParent method can be accomplished..
AddBarAdds a bar to an item.
AddItemAdds a new item, and returns a handle to the newly created item.
AddLinkLinks a bar to another.
CellBackColorRetrieves or sets the cell's background color.
CellBoldRetrieves or sets a value that indicates whether the cell's caption should appear in bold.
CellButtonAutoWidthRetrieves or sets a value indicating whether the cell's button fits the cell's caption.
CellCaptionRetrieves or sets the text displayed on a specific cell.
CellCaptionFormatSpecifies how the cell's caption is displayed.
CellCheckedRetrieves the cell's handle that is checked on a specific radio group.
CellDataRetrieves or sets the extra data for a specific cell.
CellEnabledReturns or sets a value that determines whether a cell can respond to user-generated events.
CellFontRetrieves or sets the cell's font.
CellForeColorRetrieves or sets the cell's foreground color.
CellHAlignmentRetrieves or sets a value that indicates the alignment of the cell's caption.
CellHasButtonRetrieves or sets a value indicating whether the cell has associated a push button or not.
CellHasCheckBoxRetrieves or sets a value indicating whether the cell has associated a checkbox or not.
CellHasRadioButtonRetrieves or sets a value indicating whether the cell has associated a radio button or not.
CellHyperLinkSpecifies whether the cell's is highlighted when the cursor mouse is over the cell.
CellImageRetrieves or sets an Image that is displayed on the cell's area.
CellImagesSpecifies an additional list of icons shown in the cell.
CellItalicRetrieves or sets a value that indicates whether the cell's caption should appear in italic.
CellItemRetrieves the handle of item that is the owner of a specific cell.
CellMergeRetrieves or sets a value that indicates the index of the cell that's merged to.
CellParentRetrieves the parent of an inner cell.
CellPictureRetrieves or sets a value that indicates the Picture object displayed by the cell.
CellPictureHeightRetrieves or sets a value that indicates the height of the cell's picture.
CellPictureWidthRetrieves or sets a value that indicates the width of the cell's picture.
CellRadioGroupRetrieves or sets a value indicating the radio group where the cell is contained.
CellSingleLineRetrieves or sets a value indicating whether the cell's caption is painted using one or more lines.
CellStateRetrieves or sets the cell's state. Has effect only for check and radio cells.
CellStrikeOutRetrieves or sets a value that indicates whether the cell's caption should appear in strikeout.
CellToolTipRetrieves or sets a text that is used to show the tooltip's cell.
CellUnderlineRetrieves or sets a value that indicates whether the cell's caption should appear in underline.
CellVAlignmentRetrieves or sets a value that indicates how the cell's caption is vertically aligned.
CellWidthRetrieves or sets a value that indicates the width of the inner cell.
ChildCountRetrieves the number of children items.
ClearBarsClears the bars from the item.
ClearCellBackColorClears the cell's background color.
ClearCellForeColorClears the cell's foreground color.
ClearCellHAlignmentClears the cell's alignment.
ClearItemBackColorClears the item's background color.
ClearItemForeColorClears the item's foreground color.
ClearLinksClears all links in the chart.
DefaultItemRetrieves or sets the default item.
EditEdits a cell.
EnableItemReturns or sets a value that determines whether a item can respond to user-generated events.
EnsureVisibleItemEnsures the given item is in the visible client area.
ExpandItemExpands, or collapses, the child items of the specified item.
FindItemFinds an item, looking for Caption in ColIndex colum. The searching starts at StartIndex item.
FindItemDataFinds the item giving its data.
FindPathFinds the item, given its path. The control searches the path on the SearchColumnIndex column.
FirstItemBarGets the key of the first bar in the item.
FirstLinkGets the key of the first link.
FirstVisibleItemRetrieves the handle of the first visible item into control.
FocusItemRetrieves the handle of item that has the focus.
FormatCellSpecifies the custom format to display the cell's content.
FullPathReturns the fully qualified path of the referenced item in the control. The caption is taken from the column SearchColumnIndex.
InnerCellRetrieves the inner cell.
InsertControlItemInserts a new item of ActiveX type, and returns a handle to the newly created item.
InsertItemInserts a new item, and returns a handle to the newly created item.
IsItemLockedReturns a value that indicates whether the item is locked or unlocked.
IsItemVisibleChecks if the specific item is in the visible client area.
ItemAllowSizingRetrieves or sets a value that indicates whether a user can resize the item at run-time.
ItemAppearanceSpecifies the item's appearance when the item hosts an ActiveX control.
ItemBackColorRetrieves or sets a background color for a specific item.
ItemBarGets or sets a bar property.
ItemBoldRetrieves or sets a value that indicates whether the item should appear in bold.
ItemByIndexRetrieves the handle of the item given its index in Items collection..
ItemCellRetrieves the cell's handle based on a specific column.
ItemChildRetrieves the child of a specified item.
ItemControlIDRetrieves the item's control identifier that was used by InsertControlItem.
ItemCountRetrieves the number of items.
ItemDataRetrieves or sets the extra data for a specific item.
ItemDividerSpecifies whether the item acts like a divider item. The value indicates the index of column used to define the divider's title.
ItemDividerLineDefines the type of line in the divider item.
ItemDividerLineAlignmentSpecifies the alignment of the line in the divider item.
ItemFontRetrieves or sets the item's font.
ItemForeColorRetrieves or sets a foreground color for a specific item.
ItemHasChildrenAdds an expand button to left side of the item even if the item has no child items.
ItemHeightRetrieves or sets the item's height.
ItemItalicRetrieves or sets a value that indicates whether the item should appear in italic.
ItemMaxHeightRetrieves or sets a value that indicates the maximum height when the item's height is variable.
ItemMinHeightRetrieves or sets a value that indicates the minimum height when the item's height is sizing.
ItemObjectRetrieves the ActiveX object associated, if the item was created using InsertControlItem method.
ItemParentReturns the handle of parent item.
ItemPositionRetrieves or sets a value that indicates the item's position in the children list.
ItemStrikeOutRetrieves or sets a value that indicates whether the item should appear in strikeout.
ItemToIndexRetrieves the index of item into Items collection given its handle.
ItemUnderlineRetrieves or sets a value that indicates whether the item should appear in underline.
ItemWidthRetrieves or sets a value that indicates the item's width while it contains an ActiveX control.
ItemWindowHostRetrieves the window's handle that hosts an ActiveX control when the item was created using InsertControlItem.
ItemWindowHostCreateStyleRetrieves or sets a value that indicates a combination of window styles used to create the ActiveX window host.
LastVisibleItemRetrieves the handle of the last visible item.
LinkGets or sets a property for a link.
LockedItemRetrieves the handle of the locked/fixed item.
LockedItemCountSpecifies the number of items fixed on the top or bottom side of the control.
MatchItemCountRetrieves the number of items that match the filter.
MergeCellsMerges a list of cells.
NextItemBarGets the key of the next bar in the item.
NextLinkGets the key of the next link.
NextSiblingItemRetrieves the next sibling of the item in the parent's child list.
NextVisibleItemRetrieves the handle of next visible item.
PathSeparatorReturns or sets the delimiter character used for the path returned by the FullPath property.
PrevSiblingItemRetrieves the previous sibling of the item in the parent's child list.
PrevVisibleItemRetrieves the handle of previous visible item.
RemoveAllItemsRemoves all items from the control.
RemoveBarRemoves a bar from an item.
RemoveItemRemoves a specific item.
RemoveLinkRemoves a link.
RemoveSelectionRemoves the selected items (including the descendents).
RootCountRetrieves the number of root objects into Items collection.
RootItemRetrieves the handle of the root item giving its index into the root items collection.
SelectableItemSpecifies whether the user can select the item.
SelectAllSelects all items.
SelectCountRetrieves the handle of selected item giving its index in selected items collection.
SelectedItemRetrieves the selected item's handle given its index in selected items collection.
SelectItemSelects or unselects a specific item.
SelectPosSelects items by position.
SetParentChanges the parent of the given item.
SortableItemSpecifies whether the item is sortable.
SortChildrenSorts the child items of the given parent item in the control. SortChildren will not recurse through the tree, only the immediate children of Item will be sorted.
SplitCellSplits a cell, and returns the inner created cell.
UnmergeCellsUnmerges a list of cells.
UnselectAllUnselects all items.
UnsplitCellUnsplits a cell.
VisibleCountRetrieves the number of visible items.
VisibleItemCountRetrieves the number of visible items.