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

OptionValue

OptionValue[name]
gives the value of name in options matched by OptionsPattern.
OptionValue
gives the value of name for options associated with the head f.
OptionValue
extracts option values from the explicit list of rules opts.
  • OptionValue gives explicit forms for default option values.
  • OptionValue allows either or as specifications of default option values. Each head is treated as the list of rules obtained from Options.
Define default option values for the function :
Define , allowing options to be given:
Use with an explicit option setting:
Use with options taken to have their default values:
Define default option values for the function :
In[1]:=
Click for copyable input
Define , allowing options to be given:
In[2]:=
Click for copyable input
Use with an explicit option setting:
In[3]:=
Click for copyable input
Out[3]=
Use with options taken to have their default values:
In[4]:=
Click for copyable input
Out[4]=
New in 6