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

ToBoxes

ToBoxes[expr]
generates boxes corresponding to the printed form of expr in StandardForm.
ToBoxes
gives the boxes corresponding to output in the specified form.
Box representation of a polynomial:
Display boxes as formatted:
Box representation of a graphic:
A special function in StandardForm and TraditionalForm:
Box representation of a polynomial:
In[1]:=
Click for copyable input
Out[1]=
Display boxes as formatted:
In[2]:=
Click for copyable input
Out[2]//DisplayForm=
 
Box representation of a graphic:
In[1]:=
Click for copyable input
Out[1]=
 
A special function in StandardForm and TraditionalForm:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
Integer, Rational, Real, and Complex numbers:
Arbitrary-precision Real and Complex numbers:
Special constants:
Characters and strings of characters:
Control characters for strings:
Box representations for various Power expressions:
Special typeset expressions:
Different list structures:
Inputs with subscripts, superscripts, etc.:
Some objects use a special output representation with interpretation:
Some objects use an elided output representation:
ToBoxes evaluates expr, while MakeBoxes does not:
Use ToExpression to interpret boxes:
Use DisplayForm to see how the boxes display:
Use formatting rules added through Format:
Add formatting for :
Use formatting rules added through MakeBoxes:
New in 3