MathPictureBoxMathCommand Property
Specifies the Wolfram Language command that is used to generate the image to display.
Namespace: Wolfram.NETLink.UIAssembly: Wolfram.NETLink (in Wolfram.NETLink.dll) Version: 2.0.0.0
public string MathCommand { get; set; }
Public Property MathCommand As String
Get
Set
public:
property String^ MathCommand {
String^ get ();
void set (String^ value);
}
member MathCommand : string with get, set
Property Value
String
For graphics output, this will typically be a plotting command, such as "Plot[x,{x,0,1}]". For
typeset output (i.e., the
PictureType property is set to "StandardForm" or "TraditionalForm"),
any expression can be given; its result will be typeset and displayed. Note that it is the
result
of the expression that is displayed, so do not make the mistake of ending the expression with a
semicolon, as this will make the expression evaluate to Null.
You might find it more convenient to define the command in the Wolfram Language as a function and then
specify only the function call as the MathCommand. For example, when using this class from
a Wolfram Language program, you might do this:
plotFunc[] := Plot[...complex plot command...];
myMathPictureBox@MathCommand = "plotFunc[]";