Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > Package Development > Options Management > OptionValue >

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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF