.NET/Link API Version 1.7 USE FRAMES

MathPictureBox Class

A PictureBox subclass intended for displaying images of Mathematica graphics and typeset expressions.

For a list of all members of this type, see MathPictureBox Members.


[Visual Basic]
Public Class MathPictureBox
    Inherits PictureBox
public class MathPictureBox : PictureBox

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.


This class can be used from Mathematica or .NET code. Use it like any other PictureBox, and simply set the MathCommand property to have the resulting image displayed in the box.

To have the MathPictureBox display the result of a computation, set the MathCommand property to a string of Mathematica code (for example, "Plot[x, {x,0,1}]"). Alternatively, you can directly assign an Image to display using the inherited Image property. In that case, no computation is done in Mathematica to generate the image. You would choose that technique if you were drawing into an offscreen image from Mathematica code and then placing that Image into the MathPictureBox.


Namespace: Wolfram.NETLink.UI

Assembly: Wolfram.NETLink (in Wolfram.NETLink.dll)

See Also

MathPictureBox Members | Wolfram.NETLink.UI Namespace