This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

ExpressionCell

ExpressionCell[expr]
gives an expression cell that can appear in a Mathematica notebook.
ExpressionCell[expr, "style"]
gives an expression cell with the specified style.
  • Expression cells can contain any Mathematica expressions, including graphics and dynamic objects.
  • Typical possible styles for expression cells include "Input", "Output", "Section", etc.
  • CellPrint[ExpressionCell[expr, "Print"]] is normally effectively equivalent to Print[expr].
Alignmenthow to align the contents of the cell
Backgroundthe color of the background for the cell
CellBaselinealignment relative to surrounding text
CellFramewhether to draw a frame around the cell
CellTagstags for the cell
Editablewhether to allow the contents of the cell to be edited
FontSizethe default size of text in the cell
2D and 3D graphics as well as formulas can be part of the content:
An expression cell can appear within a text cell:
Use different named styles:
A simple function that produces a document as an answer using expression and text cells:
TextCell and ExpressionCell format contents differently:
Cell is used for low-level descriptions, including forms that are not complete expressions:
New in 6