TextCell

TextCell["string"]

gives a text cell that can appear in a Wolfram System notebook.

TextCell["string","style"]

gives a text cell with the specified style.

TextCell["string","style1","style2",]

gives a text cell with multiple styles applied to it.

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:
  • 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
    TextAlignmenthow to align text in the cell

Examples

open allclose all

Basic Examples  (2)

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

Create a cell with the Section style:

In[1]:=
Click for copyable input
Out[1]=

Scope  (4)

Properties & Relations  (2)

Possible Issues  (1)

See Also

Text  Row  TextGrid  ExpressionCell  CellGroup  CellPrint  Cell  CreateDocument  NotebookImport

Introduced in 2007
(6.0)
| Updated in 2017
(11.2)