({{, (RefLink[TextCell, paclet:ref/TextCell])["string"] 
gives a text cell that can appear in a Wolfram System notebook.}, {, (RefLink[TextCell, paclet:ref/TextCell])["string","style"] 
gives a text cell with the specified style.}, {, (RefLink[TextCell, paclet:ref/TextCell])["string","(Subscript[style, 1])","(Subscript[style, 2])",…]
gives a text cell with multiple styles applied to it.}})

OpenersNotesSection(Spacer1)Details and Options

Text cells are formatted like text, with appropriate spacing and line breaking.

(RefLink[CellPrint, paclet:ref/CellPrint])[TextCell[expr]] inserts a text cell into your current notebook.

Typical possible styles for text cells include "Title", "Section", "Text", etc.

(RefLink[TextCell, paclet:ref/TextCell])[(RefLink[Row, paclet:ref/Row])[{(Subscript[expr, 1]),(Subscript[expr, 2]),…}]] generates a text cell containing a concatenation of the (Subscript[expr, i]), which need not be only strings.

(RefLink[TextCell, paclet:ref/TextCell]) can have any of the many options of (RefLink[Cell, paclet:ref/Cell]), including:

OpenersPrimaryExamplesSection(Spacer1)Examples  (9)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

This represents a cell that contains text:

TextCell["abcde"]

This turns the cell expression into an actual cell in the current notebook:

CellPrint[%]

Create a cell with the Section style:

TextCell["abcde","Section"]

OpenersExampleSection1(Spacer1)Scope  (4)

Text cells can contain a mixture of simple text and Wolfram Language expressions:

CellPrint[TextCell[Row[{a+b,"aasa",Sqrt[2]}],"Text"]]

a+baasa(Sqrt[2])

Text cells can contain styled text:

CellPrint[TextCell[Row[{Style["bold", FontWeight->Bold], " text"}],"Text"]]

bold text

Use different styles:

Table[TextCell["text",s],{s,{"Text","Subsection","Section","Title"}}]

Use more than one style:

TextCell["text","Section", "TI"]

OpenersExampleSection3(Spacer1)Properties & Relations  (2)

(RefLink[TextCell, paclet:ref/TextCell]) and (RefLink[ExpressionCell, paclet:ref/ExpressionCell]) format contents differently:

CellPrint[{TextCell["abcde","Text"],ExpressionCell["abcde","Text"]}]

abcde

"abcde"

If the argument to (RefLink[TextCell, paclet:ref/TextCell]) is not a string or a (RefLink[Row, paclet:ref/Row]), it will produce an expression cell:

CellPrint[{TextCell[Sqrt[x],"Output"],ExpressionCell[Sqrt[x],"Output"]}]

OpenersExampleSection4(Spacer1)Possible Issues  (1)

Certain (RefLink[Cell, paclet:ref/Cell]) options only affect standalone cells, such as cells produced by (RefLink[CellPrint, paclet:ref/CellPrint]), and do not affect cells that occur within an output cell:

TextCell["abcde",CellDingbat->"◆",CellLabel->"Example"]

TextCell["abcde",CellDingbat->"◆",CellLabel->"Example"]//CellPrint

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Text, paclet:ref/Text])  ▪  (RefLink[Row, paclet:ref/Row])  ▪  (RefLink[TextGrid, paclet:ref/TextGrid])  ▪  (RefLink[ExpressionCell, paclet:ref/ExpressionCell])  ▪  (RefLink[CellGroup, paclet:ref/CellGroup])  ▪  (RefLink[CellPrint, paclet:ref/CellPrint])  ▪  (RefLink[Cell, paclet:ref/Cell])  ▪  (RefLink[CreateDocument, paclet:ref/CreateDocument])  ▪  (RefLink[NotebookImport, paclet:ref/NotebookImport])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Notebook Document Generation, paclet:guide/DocumentGeneration])}, {▪(RefLinkPlain[Cell Styling Options, paclet:guide/CellStylingOptions])}, {▪(RefLinkPlain[Textual Elements in Notebooks, paclet:guide/TextualElementsInNotebooks])}, {▪(RefLinkPlain[Automated Reports, paclet:guide/AutomatedReports])}, {▪(RefLinkPlain[Toolbars, paclet:guide/Toolbars])}, {▪(RefLinkPlain[Text Generation, paclet:guide/TextConstruction])}})}})