Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeMathRenderer

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
ba882f6b0d07 with working tree changes
Modifiers
static

Renders the shared mathematical expression tree into the shared drawing scene.

Inheritance

  • object
  • OfficeMathRenderer

Methods

AddToDrawing 2 overloads
public static OfficeMathLayoutMetrics AddToDrawing(OfficeDrawing drawing, OfficeMathExpression expression, double x, double y, OfficeMathRenderOptions? options = null) #

Adds a laid-out expression to an existing drawing.

Parameters

drawing OfficeIMO.Drawing.OfficeDrawing required
expression OfficeIMO.Drawing.OfficeMathExpression required
x double required
y double required
options OfficeIMO.Drawing.OfficeMathRenderOptions? = null optional
public static OfficeMathLayoutMetrics AddToDrawing(OfficeDrawing drawing, OfficeMathExpression expression, double x, double y, OfficeMathRenderOptions? options, CancellationToken cancellationToken) #

Adds an expression with cancellable bounded font-outline work.

Parameters

drawing OfficeIMO.Drawing.OfficeDrawing required
expression OfficeIMO.Drawing.OfficeMathExpression required
x double required
y double required
options OfficeIMO.Drawing.OfficeMathRenderOptions? required
cancellationToken System.Threading.CancellationToken required
Measure 2 overloads
public static OfficeMathLayoutMetrics Measure(OfficeMathExpression expression, OfficeMathRenderOptions? options = null) #

Measures an expression using deterministic, dependency-free font metrics.

Parameters

expression OfficeIMO.Drawing.OfficeMathExpression required
options OfficeIMO.Drawing.OfficeMathRenderOptions? = null optional
public static OfficeMathLayoutMetrics Measure(OfficeMathExpression expression, OfficeMathRenderOptions? options, CancellationToken cancellationToken) #

Measures an expression with cancellable bounded font-outline work.

Parameters

expression OfficeIMO.Drawing.OfficeMathExpression required
options OfficeIMO.Drawing.OfficeMathRenderOptions? required
cancellationToken System.Threading.CancellationToken required
Render 2 overloads
public static OfficeDrawing Render(OfficeMathExpression expression, OfficeMathRenderOptions? options = null) #

Creates a tightly sized drawing containing an expression.

Parameters

expression OfficeIMO.Drawing.OfficeMathExpression required
options OfficeIMO.Drawing.OfficeMathRenderOptions? = null optional
public static OfficeDrawing Render(OfficeMathExpression expression, OfficeMathRenderOptions? options, CancellationToken cancellationToken) #

Creates a drawing with cancellable bounded font-outline work.

Parameters

expression OfficeIMO.Drawing.OfficeMathExpression required
options OfficeIMO.Drawing.OfficeMathRenderOptions? required
cancellationToken System.Threading.CancellationToken required