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

DefaultOptions

DefaultOptions
is a style option which allows default options to be specified for particular formatting and related constructs.
  • A typical setting is DefaultOptions->{obj1->opts1, ...}, where the obji are symbols such as Button, Pane or Graphics.
  • Style[expr, DefaultOptions->{obj1->opts1, ...}] specifies that when obji[...] appears in expr, it should be given the default options opti.
Locally set DefaultOptions:
In[1]:=
Click for copyable input
Out[1]=
 
Explicit option settings in an object override default options for that type of object:
In[1]:=
Click for copyable input
Out[1]=
New in 6