TextCell
✖
TextCell
Details and Options

- Text cells are formatted like text, with appropriate spacing and line breaking.
- CellPrint[TextCell[expr]] inserts a text cell into your current notebook.
- Typical possible styles for text cells include "Title", "Section", "Text", etc.
- TextCell[Row[{expr1,expr2,…}]] generates a text cell containing a concatenation of the expri, which need not be only strings.
- TextCell can have any of the many options of Cell, including:
-
Background the color of the background for the cell CellBaseline alignment relative to surrounding text CellFrame whether to draw a frame around the cell CellTags tags for the cell Editable whether to allow the contents of the cell to be edited FontSize the default size of text in the cell TextAlignment how to align text in the cell
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
This represents a cell that contains text:

https://wolfram.com/xid/0j41sv2i-0v6ud

This turns the cell expression into an actual cell in the current notebook:

https://wolfram.com/xid/0j41sv2i-c9mdcz
Create a cell with the Section style:

https://wolfram.com/xid/0j41sv2i-i7ajqk

Scope (4)Survey of the scope of standard use cases
Text cells can contain a mixture of simple text and Wolfram Language expressions:

https://wolfram.com/xid/0j41sv2i-qly

Text cells can contain styled text:

https://wolfram.com/xid/0j41sv2i-gykt7x


https://wolfram.com/xid/0j41sv2i-7f5l7


https://wolfram.com/xid/0j41sv2i-dwi3xl

Applications (1)Sample problems that can be solved with this function
Properties & Relations (2)Properties of the function, and connections to other functions
TextCell and ExpressionCell format contents differently:

https://wolfram.com/xid/0j41sv2i-dve7p7


If the argument to TextCell is not a string or a Row, it will produce an expression cell:

https://wolfram.com/xid/0j41sv2i-y2pgl


Possible Issues (1)Common pitfalls and unexpected behavior
Wolfram Research (2007), TextCell, Wolfram Language function, https://reference.wolfram.com/language/ref/TextCell.html (updated 2017).
Text
Wolfram Research (2007), TextCell, Wolfram Language function, https://reference.wolfram.com/language/ref/TextCell.html (updated 2017).
Wolfram Research (2007), TextCell, Wolfram Language function, https://reference.wolfram.com/language/ref/TextCell.html (updated 2017).
CMS
Wolfram Language. 2007. "TextCell." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2017. https://reference.wolfram.com/language/ref/TextCell.html.
Wolfram Language. 2007. "TextCell." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2017. https://reference.wolfram.com/language/ref/TextCell.html.
APA
Wolfram Language. (2007). TextCell. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TextCell.html
Wolfram Language. (2007). TextCell. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TextCell.html
BibTeX
@misc{reference.wolfram_2025_textcell, author="Wolfram Research", title="{TextCell}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/TextCell.html}", note=[Accessed: 24-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_textcell, organization={Wolfram Research}, title={TextCell}, year={2017}, url={https://reference.wolfram.com/language/ref/TextCell.html}, note=[Accessed: 24-April-2025
]}