ExpressionCell
✖
ExpressionCell
gives an expression cell with multiple styles applied to it.
Details and Options

- Expression cells can contain any Wolfram Language expressions, including graphics and dynamic objects.
- An ExpressionCell can appear anywhere in a Wolfram Language expression.
- ExpressionCell[expr] by default formats expr in the current default output format type, typically StandardForm.
- Typical possible styles for expression cells include "Input", "Output", "Section", etc.
- CellPrint[ExpressionCell[expr, "Print"]] is normally effectively equivalent to Print[expr].
- ExpressionCell can have any of the many options of Cell, including, for example:
-
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 the contents of the cell - ExpressionCell[Null] gives an empty expression cell.
Examples
open allclose allBasic Examples (1)Summary of the most common use cases

https://wolfram.com/xid/0enyz03yy-rh4w9k

Scope (4)Survey of the scope of standard use cases
2D and 3D graphics as well as formulas can be part of the content:

https://wolfram.com/xid/0enyz03yy-ixp09k


https://wolfram.com/xid/0enyz03yy-cp0xy4


https://wolfram.com/xid/0enyz03yy-jhkq2r

An expression cell can appear within a text cell:

https://wolfram.com/xid/0enyz03yy-holizf


https://wolfram.com/xid/0enyz03yy-du3i1d


https://wolfram.com/xid/0enyz03yy-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/0enyz03yy-dve7p7


Cell is used for low-level descriptions, including forms that are not complete expressions:

https://wolfram.com/xid/0enyz03yy-dywb6p

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