Returns the item's number of dependents (child items).
Get
| C# | int Count = object.get_DependentCount(bool Depth); |
| VB.NET | Count = object.DependentCount(ByVal Depth As Boolean) As Integer |
| C++ | long Count = object->DependentCount[VARIANT_BOOL Depth]; long Count = object->GetDependentCount(VARIANT_BOOL Depth); |
| C | HRESULT object->get_DependentCount(VARIANT_BOOL Depth, long* Count); |
| VB | Count = object.DependentCount(ByVal Depth As Boolean) As Long |
object
Depth
Determines the depth.
| Boolean | Description |
|---|---|
| True | A count of all child items is returned, both immediate child items (on the next lower level) and indirect child items (child items of child items). |
| False | A count of immediate child items is returned (on the next lower level). Indirect child items are not counted. |
Count
Returns the item's number of dependents (child items).
The DependentCount property returns the item's number of dependents (child items).
The Item.FirstDependent property can be used to find the index of the first child item. Item.LastDependent returns the last child item.
Also see Item.FirstSibling, Item.NextSibling, Item.PrevSibling, Item.LastSibling.
See Also SftBoxItem Object | Object Hierarchy