This is documentation for Mathematica 6, 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
New in 6