Skip to content

ItemChildCount - AbstractTreeView

Getting this property returns whether there are child items

Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None

Parameters

Parameter Type Description
hItem Handle Item handle

Syntax

Property Integer ItemChildCount
Access Type Syntax
Read Access: Get ItemChildCount to IntegerVariable
Write Access: Set ItemChildCount to IntegerVariable/Value

Description

Getting the ItemChildCount property returns whether there are child items.

Setting this property is an advanced interface method. It is possible to "trick" the control into thinking that an item has child items. By doing this, an item will be displayed as though it had child items (that is, it will have a box with a plus sign next to it). When users click the box to open it, an OnItemExpanding event will be fired. You can use this event to dynamically add items that will then be displayed. If you do not add any items, the box indicating children will disappear.