# OneNoteMath

Mathematical content and its best available projections.

Class 

`OfficeIMO.OneNote`

**Namespace**

`OfficeIMO.OneNote`

**Assembly**

`OfficeIMO.OneNote`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[OneNoteBinaryContent.cs:264](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteBinaryContent.cs#L264)

**Base**

`OneNoteElement`

**Modifiers**

sealed

Mathematical content and its best available projections.

## Inheritance

- [OneNoteElement](/api/onenote/officeimo-onenote-onenoteelement/)
- OneNoteMath

## Usage

Explore 1 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 [OneNoteMath.SetExpression](/api/onenote/officeimo-onenote-onenotemath/#method-setexpression-officeimo-drawing-officemathexpression-boolean)

Filter members 

Show inherited

## Constructors

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

## Methods

`public OfficeMathExpression GetExpression()` [#](#method-getexpression)

[OneNoteBinaryContent.cs:275](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteBinaryContent.cs#L275)

Returns the structured expression or derives it from MathML, LaTeX, or plain text.

Returns

`OfficeMathExpression`

`public OneNoteMath SetExpression(OfficeMathExpression expression, bool populateProjections = true)` [#](#method-setexpression-officeimo-drawing-officemathexpression-boolean)

[OneNoteBinaryContent.cs:264](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteBinaryContent.cs#L264)

Assigns a structured expression and refreshes its portable projections.

Parameters

**expression OfficeIMO.Drawing.OfficeMathExpression required**

**populateProjections bool = true optional**

Returns

`OneNoteMath`

## 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 override OneNoteElementKind Kind { get; }` [#](#property-kind)

[OneNoteBinaryContent.cs:245](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteBinaryContent.cs#L245)

Logical content kind.

`public OfficeMathExpression? Expression { get; set; }` [#](#property-expression)

[OneNoteBinaryContent.cs:248](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteBinaryContent.cs#L248)

Structured, editable mathematical content owned by OfficeIMO.Drawing.

`public string? Text { get; set; }` [#](#property-text)

[OneNoteBinaryContent.cs:251](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteBinaryContent.cs#L251)

Plain-text mathematical projection.

`public string? MathMl { get; set; }` [#](#property-mathml)

[OneNoteBinaryContent.cs:254](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteBinaryContent.cs#L254)

MathML projection when available.

`public string? Latex { get; set; }` [#](#property-latex)

[OneNoteBinaryContent.cs:257](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteBinaryContent.cs#L257)

LaTeX projection when available.

`public OneNoteBinaryPayload? RawPayload { get; set; }` [#](#property-rawpayload)

[OneNoteBinaryContent.cs:260](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteBinaryContent.cs#L260)

Raw mathematical payload preserved for loss-aware writing.

## Inherited Properties

`public OneNoteExtendedGuid? Id { get; set; }` [#](#property-id)

[OneNoteContent.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteContent.cs#L32)

Inherited from [OneNoteElement](/api/onenote/officeimo-onenote-onenoteelement/)

`public OneNoteLayout? Layout { get; set; }` [#](#property-layout)

[OneNoteContent.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteContent.cs#L38)

Inherited from [OneNoteElement](/api/onenote/officeimo-onenote-onenoteelement/)

`public OneNoteAuthor? Author { get; set; }` [#](#property-author)

[OneNoteContent.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteContent.cs#L41)

Inherited from [OneNoteElement](/api/onenote/officeimo-onenote-onenoteelement/)

`public IList<OneNoteTag> Tags { get; }` [#](#property-tags)

[OneNoteContent.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteContent.cs#L44)

Inherited from [OneNoteElement](/api/onenote/officeimo-onenote-onenoteelement/)

`public IList<OneNoteOpaqueProperty> UnknownProperties { get; }` [#](#property-unknownproperties)

[OneNoteContent.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteContent.cs#L47)

Inherited from [OneNoteElement](/api/onenote/officeimo-onenote-onenoteelement/)

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