StyleBox

StyleBox[boxes, options]
is a low-level representation of boxes to be shown with the specified option settings.

StyleBox[boxes, "style"]
uses the option setting for the specified style in the current notebook.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples (4)Basic Examples (4)

Style boxes or text according to a style option:

In[1]:=
Click for copyable input
Out[1]//DisplayForm=
In[2]:=
Click for copyable input
Out[2]//DisplayForm=

Use a named style:

In[1]:=
Click for copyable input
Out[1]//DisplayForm=
In[2]:=
Click for copyable input
Out[2]//DisplayForm=

Display some text that cannot be selected except as a whole:

In[1]:=
Click for copyable input
Out[1]//DisplayForm=
In[2]:=
Click for copyable input
Out[2]//DisplayForm=

By default, spanning characters such as braces do not grow arbitrarily large:

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

Use SpanMaxSize to allow braces to grow to the full size:

In[2]:=
Click for copyable input
Out[2]//DisplayForm=
New in 3 | Last modified in 6
New to Mathematica? Find your learning path »
Have a question? Ask support »