---
title: "CFTreeGetChildCount(_:)"
framework: Core Foundation
role: symbol
role_heading: Function
path: "corefoundation/cftreegetchildcount(_:)"
---

# CFTreeGetChildCount(_:)

Returns the number of children in a tree.

## Declaration

```swift
func CFTreeGetChildCount(_ tree: CFTree!) -> CFIndex
```

## Parameters

- `tree`: The tree to examine.

## Return Value

Return Value The number of children in tree.

## See Also

### Examining a Tree

- [CFTreeFindRoot(_:)](corefoundation/cftreefindroot(_:).md)
- [CFTreeGetChildAtIndex(_:_:)](corefoundation/cftreegetchildatindex(_:_:).md)
- [CFTreeGetChildren(_:_:)](corefoundation/cftreegetchildren(_:_:).md)
- [CFTreeGetContext(_:_:)](corefoundation/cftreegetcontext(_:_:).md)
- [CFTreeGetFirstChild(_:)](corefoundation/cftreegetfirstchild(_:).md)
- [CFTreeGetNextSibling(_:)](corefoundation/cftreegetnextsibling(_:).md)
- [CFTreeGetParent(_:)](corefoundation/cftreegetparent(_:).md)
