Suite samples
Tree samples
Usage
Getting Tree state
Getting Tree state.
Check documentation:
Setting/getting Tree state
Get state