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

StyleBox

StyleBox
is a low-level representation of boxes to be shown with the specified option settings.
StyleBox
uses the option setting for the specified style in the current notebook.
  • StyleBox is the low-level representation of Style. Except for low-level notebook expression manipulation, StyleBox should not need to be used directly.
  • The following additional options can be given:
AutoSpacingTruewhether to adjust character spacings automatically
LineIndent1.0distance in ems to indent for each nesting level
LineIndentMaxFraction0.5maximum fraction of line width to indent
ScriptMinSize4the minimum point size to use for subscripts, etc.
ScriptSizeMultipliers0.71how much smaller to make each level of subscripts, etc.
ShowContentsTruewhether to make boxes visible or just leave space for them
SpanLineThicknessAutomaticthickness in printer's points of fraction lines, etc.
SpanMaxSizeAutomaticmaximum size of expandable characters in units of font size
SpanMinSizeAutomaticminimum size of expandable characters in units of font size
SpanSymmetricTruewhether vertically expandable characters should be symmetric about the axis of the box they are in
  • When StyleBox objects are nested, the options of the innermost one control the display of particular boxes.
Style boxes or text according to a style option:
Use a named style:
Display some text that cannot be selected except as a whole:
By default, spanning characters such as braces do not grow arbitrarily large:
Use SpanMaxSize to allow braces to grow to the full size:
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