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 following screen shot shows the items of the control:

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.
AllowCellValueToItemBarRetrieves or sets a value that indicates whether the cells display associated properties of the bars in the item.
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.
CellCaptionGets the cell's display value.
CellCheckedRetrieves the cell's handle that is checked on a specific radio group.
CellDataRetrieves or sets the extra data for a specific cell.
CellEditorCreates and gets the cell's built-in editor.
CellEditorVisibleSpecifies whether column's editor is visible or hidden in the 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.
CellFormatLevelSpecifies the arrangement of the fields inside the cell.
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.
CellValueSpecifies the cell's value.
CellValueFormatSpecifies how the cell's caption is displayed.
CellValueToItemBarIndicates whether the cell displays the specified property of the bar.
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.
ComputeValueComputes the value of a specified formula.
DefaultItemRetrieves or sets the default item.
DefineSummaryBarsDefines the bars that belongs to a summary bar.
DefSchedulePDMRetrieves or sets an option for SchedulePDM method.
DeleteCellEditorDeletes the cell's built-in editor created by CellEditor property.
EnableItemReturns or sets a value that determines whether a item can respond to user-generated events.
EndBlockUndoRedoEnds recording the UI operations and adds the undo/redo operations as a block, so they all can be restored at once, if Undo method is performed.
EndUpdateBarAdds programmatically updated properties of the bar to undo/redo queue.
EndUpdateLinkAdds programmatically updated properties of the link to undo/redo queue.
EnsureVisibleBarEnsures that the given item-bar fits the chart's visible area.
EnsureVisibleItemEnsures that the given item fits the control's visible area
ExpandItemExpands, or collapses, the child items of the specified item.
FindBarFinds the item that hosts the specified bar.
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.
GroupBarsGroups two bars.
GroupItemIndicates a group item if positive, and the value specifies the index of the column that has been grouped.
HasCellEditorSpecifies whether a cell has a built-in editor.
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.
IntersectBarsSpecifies whether two bars intersect if returns 0, if 1 A is before B and -1 if A is after bar B.
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.
ItemBarExGets or sets the property's bar that matches the criteria.
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.
ItemFilteredChecks whether the item is included in the control's filter.
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.
ItemNonworkingUnitsGets or sets a value that indicates the formula to specify the use non-working units for the item.
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.
RemoveLinksOfRemoves the links that goes or ends on the specified bar.
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.
SchedulePDMSchedules the chart using the Precedence Diagram Method.
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.
SelectedObjectsRetrieves a collection of selected objects in the chart.
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.
StartBlockUndoRedoStarts recording the UI operations as a block of undo/redo operations.
StartUpdateBarStarts changing properties of the bar, so EndUpdateBar method adds programmatically updated properties to undo/redo queue.
StartUpdateLinkStarts changing properties of the link, so EndUpdateLink method adds programmatically updated properties to undo/redo queue.
UndefineSummaryBarsUndefines the bars in a summary bar
UngroupBarsUngroups two bars.
UnmergeCellsUnmerges a list of cells.
UnselectAllUnselects all items.
UnsplitCellUnsplits a cell.
VisibleCountRetrieves the number of visible items.
VisibleItemCountRetrieves the number of visible items.