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.

Details

Examples

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=

See Also

Style  AdjustmentBox  FrameBox  Cell  ShowAutoStyles

Tutorials

Introduced in 1996
(3.0)
| Updated in 2007
(6.0)