MathPictureBoxMathCommand Property

Specifies the Wolfram Language command that is used to generate the image to display.

Definition

Namespace: Wolfram.NETLink.UI
Assembly: Wolfram.NETLink (in Wolfram.NETLink.dll) Version: 2.0.0.0
C#
public string MathCommand { get; set; }

Property Value

String

Remarks

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:

C#
plotFunc[] := Plot[...complex plot command...];
myMathPictureBox@MathCommand = "plotFunc[]";

See Also