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

# CFTreeGetParent(_:)

Returns the parent of a given tree.

## Declaration

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

## Parameters

- `tree`: The tree to examine.

## Return Value

Return Value The parent of tree. Ownership follows the The Get Rule.

## See Also

### Examining a Tree

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