DefaultOptions

DefaultOptions
is a style option that allows default options to be specified for particular formatting and related constructs.

DetailsDetails

  • A typical setting is DefaultOptions->{obj1->opts1,}, where the are symbols such as Button, Pane, or Graphics.
  • Style[expr,DefaultOptions->{obj1->opts1,}] specifies that when appears in expr, it should be given the default options .

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

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]=
Introduced in 2007
(6.0)