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 into 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 simple list. The Items object supports the following properties and methods:

NameDescription
AcceptSetParentRetrieves a value indicating whether the SetParent method can be accomplished.
AddItemAdds a new item, and returns a handle to the newly created item.
CellBackColorRetrieves or sets the cell's background color.
CellBoldRetrieves or sets a value that specifies whether the cell's caption should appear in bold.
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 a value that indicates an 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.
CellHasCheckBoxRetrieves or sets a value indicating whether the cell has associated a checkbox.
CellHasRadioButtonRetrieves or sets a value indicating whether the cell has associated a radio button.
CellImageRetrieves or sets a value that indicates the index of cell's image into Images collection.
CellImagesSpecifies an additional list of icons shown in the cell.
CellItalicRetrieves or sets a value that specifies 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.
CellOwnerDrawSpecifies the cell's owner draw handler.
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 cells of radio or check type.
CellStrikeOutRetrieves or sets a value that specifies whether the cell's caption should appear in strikeout.
CellToolTipRetrieves or sets a value that indicates the cell's tooltip.
CellUnderlineRetrieves or sets a value that specifies whether the cell's caption is underlined.
CellVAlignmentRetrieves or sets a value that indicates how the cell's caption is vertically aligned.
ChildCountRetrieves the number of children items.
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.
DefaultItemRetrieves or sets the default item's handle.
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 column. The searching starts at StartIndex item.
FindPathFinds the item, given its path. The control searches the path on the SearchColumnIndex column.
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.
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.
ItemBackColorRetrieves or sets a background color for a specific item.
ItemBoldRetrieves or sets a value that specifies whether the item should appear in bold.
ItemByIndexRetrieves the handle of the item given its index in Items collection..
ItemCellRetrieves a value that indicates the cell's handle based on a specific column.
ItemChildRetrieves the child of a specified item.
ItemCountRetrieves the number of items.
ItemDataRetrieves or sets a value that indicates an 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 specifies 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.
ItemParentReturns the handle of the item's parent item.
ItemPositionRetrieves or sets a value that indicates the item's position in the children list.
ItemStrikeOutRetrieves or sets a value that specifies whether the item should appear in strikeout.
ItemToIndexRetrieves the index of item into Items collection given its handle.
ItemUnderlineRetrieves or sets a value that specifies whether the item is underlined.
LastVisibleItemRetrieves the handle of the last visible item.
LockedItemRetrieves the handle of the locked 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.
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.
RemoveItemRemoves a specific item.
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 count of selected items.
SelectedItemRetrieves the selected item's handle given its index into the 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.
UnmergeCellsUnmerges a list of cells.
UnselectAllUnselects all items.
VisibleCountRetrieves the number of items being visible in the control's client area.
VisibleItemCountRetrieves the number of visible items.