# OfficeMathRenderOptions

Settings for dependency-free mathematical layout and drawing.

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeMathRenderOptions.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Math/OfficeMathRenderOptions.cs#L6)

**Modifiers**

sealed

Settings for dependency-free mathematical layout and drawing.

## Inheritance

- object
- OfficeMathRenderOptions

## Usage

Explore 4 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Method [OfficeMathRenderOptions.Clone](/api/core/officeimo-drawing-officemathrenderoptions/#method-clone)

### Accepted by parameters 3

- Method [OfficeMathRenderer.AddToDrawing](/api/core/officeimo-drawing-officemathrenderer/#method-addtodrawing-officeimo-drawing-officedrawing-officeimo-drawing-officemathexpression-double-double-officeimo-drawing-officemathrenderoptions) parameter `options`
- Method [OfficeMathRenderer.Measure](/api/core/officeimo-drawing-officemathrenderer/#method-measure-officeimo-drawing-officemathexpression-officeimo-drawing-officemathrenderoptions) parameter `options`
- Method [OfficeMathRenderer.Render](/api/core/officeimo-drawing-officemathrenderer/#method-render-officeimo-drawing-officemathexpression-officeimo-drawing-officemathrenderoptions) parameter `options`

Filter members 

Show inherited

## Constructors

`public OfficeMathRenderOptions()` [#](#constructor-ctor)

[OfficeMathRenderOptions.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Math/OfficeMathRenderOptions.cs#L6)

## Methods

`public OfficeMathRenderOptions Clone()` [#](#method-clone)

[OfficeMathRenderOptions.cs:54](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Math/OfficeMathRenderOptions.cs#L54)

Creates a detached copy.

Returns

`OfficeMathRenderOptions`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public OfficeFontInfo Font { get; set; }` [#](#property-font)

[OfficeMathRenderOptions.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Math/OfficeMathRenderOptions.cs#L6)

Base mathematical font, whose size is expressed in points.

`public OfficeColor Color { get; set; }` [#](#property-color)

[OfficeMathRenderOptions.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Math/OfficeMathRenderOptions.cs#L9)

Foreground color.

`public OfficeColor? BackgroundColor { get; set; }` [#](#property-backgroundcolor)

[OfficeMathRenderOptions.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Math/OfficeMathRenderOptions.cs#L12)

Optional canvas background.

`public double Padding { get; set; }` [#](#property-padding)

[OfficeMathRenderOptions.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Math/OfficeMathRenderOptions.cs#L15)

Padding around the expression in drawing units.

`public bool UseFontMathMetrics { get; set; }` [#](#property-usefontmathmetrics)

[OfficeMathRenderOptions.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Math/OfficeMathRenderOptions.cs#L19)

Uses available static OpenType MATH constants for supported geometry. Disable to use caller-supplied script and rule settings throughout.

`public double ScriptScale { get; set; }` [#](#property-scriptscale)

[OfficeMathRenderOptions.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Math/OfficeMathRenderOptions.cs#L22)

Fallback relative scale applied to scripts, limits, and root indices.

`public double RuleGap { get; set; }` [#](#property-rulegap)

[OfficeMathRenderOptions.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Math/OfficeMathRenderOptions.cs#L26)

Fallback minimum gap around compact fraction and decoration rules. Display fractions use three times this gap.

`public double RuleThickness { get; set; }` [#](#property-rulethickness)

[OfficeMathRenderOptions.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Math/OfficeMathRenderOptions.cs#L29)

Fallback thickness of fraction and bar rules; thickness of radical and box rules.

`public double MatrixGap { get; set; }` [#](#property-matrixgap)

[OfficeMathRenderOptions.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Math/OfficeMathRenderOptions.cs#L32)

Horizontal and vertical gap between matrix cells.

`public double Dpi { get; set; }` [#](#property-dpi)

[OfficeMathRenderOptions.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Math/OfficeMathRenderOptions.cs#L36)

Point-to-drawing-unit density used by both measurement and paint. The default 72 keeps one drawing unit per font point.

`public bool DisplayStyle { get; set; }` [#](#property-displaystyle)

[OfficeMathRenderOptions.cs:40](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Math/OfficeMathRenderOptions.cs#L40)

Uses display fractions with full-size children. Compact fractions and fractions inside scripts use available font script percentages or the fallback [OfficeMathRenderOptions.ScriptScale](/api/core/officeimo-drawing-officemathrenderoptions/).

`public OfficeFontFaceCollection Fonts { get; set; }` [#](#property-fonts)

[OfficeMathRenderOptions.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Math/OfficeMathRenderOptions.cs#L43)

Scoped font programs used for deterministic advances and painted glyph bounds.

<!-- PowerForge markdown artifact sha256:F8966A1851C645F1B68026CC830AB2C60523B17468B9FCFD5A0A67932DDA7305 -->
