ShapeCollection.AddLaTeXEquation

ShapeCollection.AddLaTeXEquation method

Adds an equation object to the worksheet using LaTeX format strings.

public TextBox AddLaTeXEquation(int topRow, int top, int leftColumn, int left, int height, 
    int width, string latex)
ParameterTypeDescription
topRowInt32The top row index.
topInt32The vertical offset its top row, in unit of pixel.
leftColumnInt32The left column index.
leftInt32The horizontal offset from its left column, in unit of pixel.
heightInt32The height of equation, in unit of pixel.
widthInt32The width of equation, in unit of pixel.
latexStringLaTeX format string

Examples


[C#]
// LaTeX format string.
string latex = "\\alpha +  \\frac{\\partial^2}{\\partial x_1\\partial x_2}y - \\left ( a + b \\right )+_{a}^{b}\\beta";
// Adds an equation object to the worksheet.
TextBox textBox = shapes.AddLaTeXEquation(1, 0, 1, 0, 100, 300, latex);

See Also