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

TextCell

TextCell["string"]
gives a text cell that can appear in a Mathematica notebook.
TextCell["string", "style"]
gives a text cell with the specified style.
  • 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 just be strings.
  • TextCell can have any of the many options of Cell, including:
Alignmenthow to align text in 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
This represents a cell that contains text:
This turns the cell expression into an actual cell in the current notebook:
This represents a cell that contains text:
In[1]:=
Click for copyable input
Out[1]=
This turns the cell expression into an actual cell in the current notebook:
In[2]:=
Click for copyable input
abcde
 
In[1]:=
Click for copyable input
Out[1]=
Text cells can contain a mixture of simple text and Mathematica expressions:
Text cells can contain styled text:
Use different default styles:
TextCell and ExpressionCell format contents differently:
If the argument to TextCell is not a string or a Row, it will produce an expression cell:
New in 6