({{, (RefLink[DisplayForm, paclet:ref/DisplayForm])[expr]
prints with low-level boxes inside expr shown in explicit two-dimensional or other form. }})

OpenersNotesSection(Spacer1)Details

In ordinary (RefLink[StandardForm, paclet:ref/StandardForm]) output, boxes such as (RefLink[SubscriptBox, paclet:ref/SubscriptBox]) are shown literally. In (RefLink[DisplayForm, paclet:ref/DisplayForm]) they are shown as explicit two-dimensional constructs.

(RefLink[DisplayForm, paclet:ref/DisplayForm]) acts as a "wrapper", which affects printing, but not evaluation.

OpenersPrimaryExamplesSection(Spacer1)Examples  (8)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Display a box expression as formatted:

SubscriptBox["x","y"]

DisplayForm[%]

OpenersExampleSection1(Spacer1)Scope  (5)

Formatting for a row of elements:

DisplayForm[RowBox[{"1","+","1"}]]

Display nested boxes:

DisplayForm[RadicalBox[FractionBox[x,SqrtBox[y]],n]]

A subscript and superscript as nested boxes:

DisplayForm[SuperscriptBox[SubscriptBox[a,b],c]]

A subscript and superscript in a single box:

DisplayForm[SubsuperscriptBox[a,b,c]]

Vector notation from an (RefLink[OverscriptBox, paclet:ref/OverscriptBox]):

DisplayForm[OverscriptBox[a,"⇀"]]

Symbolic sum displayed using an (RefLink[UnderoverscriptBox, paclet:ref/UnderoverscriptBox]):

DisplayForm[RowBox[{UnderoverscriptBox["∑","x=1","n"],x}]]

Display a (RefLink[GridBox, paclet:ref/GridBox]):

tab=Table[i+j,{i,3},{j,3}];

DisplayForm[GridBox[tab]]

Display with row and column lines:

DisplayForm[GridBox[tab,RowLines->True,ColumnLines->True]]

Add a frame:

DisplayForm[FrameBox[%]]

Display using italic slant:

DisplayForm[StyleBox["name",FontSlant->"Italic"]]

Display using Title cell style:

DisplayForm[StyleBox["name","Title"]]

OpenersExampleSection2(Spacer1)Properties & Relations  (2)

Evaluate an expression:

Sqrt[x-a/b]

Convert to boxes:

ToBoxes[%]

Display the boxes:

DisplayForm[%]

Display an (RefLink[InterpretationBox, paclet:ref/InterpretationBox]):

DisplayForm[InterpretationBox[SuperscriptBox["x","2"],var]]

The box is interpreted as the second argument:

ToExpression[%]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[RawBoxes, paclet:ref/RawBoxes])  ▪  (RefLink[FullForm, paclet:ref/FullForm])  ▪  (RefLink[ToExpression, paclet:ref/ToExpression])  ▪  (RefLink[ToBoxes, paclet:ref/ToBoxes])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Representing Textual Forms by Boxes, paclet:tutorial/RepresentingTextualFormsByBoxes])}, {▪(RefLinkPlain[Formatted Output, paclet:tutorial/FormattedOutput])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Converting between Expressions & Strings, paclet:guide/ConvertingBetweenExpressionsAndStrings])}})}})