ParentCell[obj]
returns the CellObject that contains obj.


ParentCell
ParentCell[obj]
returns the CellObject that contains obj.
Details

- obj may be a BoxObject or CellObject.
- ParentCell returns $Failed if obj refers to an object that does not exist.
- If obj is a CellObject representing an inline cell, then ParentCell will return the CellObject corresponding to that cell's immediate parent. If obj points to a top-level cell, then ParentCell returns $Failed.
Examples
open all close allBasic Examples (1)
Create an inline cell with a variable set to the CellObject:
Return the CellObject for the parent cell:
Properties & Relations (1)
ParentCell of EvaluationBox is equivalent to EvaluationCell:
Related Guides
History
Text
Wolfram Research (2014), ParentCell, Wolfram Language function, https://reference.wolfram.com/language/ref/ParentCell.html.
CMS
Wolfram Language. 2014. "ParentCell." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ParentCell.html.
APA
Wolfram Language. (2014). ParentCell. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ParentCell.html
BibTeX
@misc{reference.wolfram_2025_parentcell, author="Wolfram Research", title="{ParentCell}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/ParentCell.html}", note=[Accessed: 16-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_parentcell, organization={Wolfram Research}, title={ParentCell}, year={2014}, url={https://reference.wolfram.com/language/ref/ParentCell.html}, note=[Accessed: 16-August-2025]}