Qurak

OptionValue

متاحة

Gives the value of a named option.

OptionValue[name]
OptionValue[f, name]
OptionValue[f, opts, name]
OptionValue[…, {name1, name2, …}]
OptionValue[Plot, Axes] → TrueOptionValue[Plot, PlotRange] → {Full, Automatic}OptionValue[Plot, "Axes"] → TrueOptionValue[Plot, {Axes, Frame}] → {True, False}OptionValue[Plot, {Axes -> 7}, {Axes, Frame}] → {7, False}OptionValue[{Frame -> True}, Frame] → TrueOptionValue[Plot, {}, Axes, Hold] → Hold[True]Options[MySetting] = {"foo" -> 5, "bar" -> 6}; OptionValue[MySetting, "bar"] → 6OptionValue[MySetting, bar] → OptionValue::optnf: Option name bar not found in defaults for MySetting. bar

المواضيع

ذات صلة

كل الدوال الـ6300 · استخدم هذا من عميل MCP