# OneNoteMarkdownProjection

Shared text and Markdown projection over the typed offline OneNote model.

Class 

`OfficeIMO.OneNote.Markdown`

**Namespace**

`OfficeIMO.OneNote.Markdown`

**Assembly**

`OfficeIMO.OneNote.Markdown`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OneNoteMarkdownProjection.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.OneNote.Markdown/OneNoteMarkdownProjection.cs#L7)

**Modifiers**

static

Shared text and Markdown projection over the typed offline OneNote model.

## Inheritance

- object
- OneNoteMarkdownProjection

Filter members 

Show inherited

## Methods

ToMarkdown 4 overloads

`public static string ToMarkdown(OneNoteElement element, Func<OneNoteBinaryElement, string?>? assetUriResolver = null)` [#](#method-tomarkdown-officeimo-onenote-onenoteelement-func-officeimo-onenote-onenotebinaryelement-system-string)

[OneNoteMarkdownProjection.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.OneNote.Markdown/OneNoteMarkdownProjection.cs#L27)

Projects one semantic element and its descendants to Markdown.

Parameters

**element OfficeIMO.OneNote.OneNoteElement required**

**assetUriResolver System.Func<OfficeIMO.OneNote.OneNoteBinaryElement, string?>? = null optional**

Returns

`string`

`public static string ToMarkdown(OneNotePage page, int headingLevel = 1, Func<OneNoteBinaryElement, string?>? assetUriResolver = null)` [#](#method-tomarkdown-officeimo-onenote-onenotepage-int32-func-officeimo-onenote-onenotebinaryelement-system-string)

[OneNoteMarkdownProjection.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.OneNote.Markdown/OneNoteMarkdownProjection.cs#L50)

Projects one page to Markdown.

Parameters

**page OfficeIMO.OneNote.OneNotePage required**

**headingLevel int = 1 optional**

**assetUriResolver System.Func<OfficeIMO.OneNote.OneNoteBinaryElement, string?>? = null optional**

Returns

`string`

`public static string ToMarkdown(OneNoteSection section, OneNoteMarkdownExportOptions? options = null)` [#](#method-tomarkdown-officeimo-onenote-onenotesection-officeimo-onenote-markdown-onenotemarkdownexportoptions)

[OneNoteMarkdownProjection.cs:63](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.OneNote.Markdown/OneNoteMarkdownProjection.cs#L63)

Projects a section, optionally including conflict and historical pages.

Parameters

**section OfficeIMO.OneNote.OneNoteSection required**

**options OfficeIMO.OneNote.Markdown.OneNoteMarkdownExportOptions? = null optional**

Returns

`string`

`public static string ToMarkdown(OneNoteNotebook notebook, OneNoteMarkdownExportOptions? options = null)` [#](#method-tomarkdown-officeimo-onenote-onenotenotebook-officeimo-onenote-markdown-onenotemarkdownexportoptions)

[OneNoteMarkdownProjection.cs:76](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.OneNote.Markdown/OneNoteMarkdownProjection.cs#L76)

Projects a notebook and its section-group hierarchy.

Parameters

**notebook OfficeIMO.OneNote.OneNoteNotebook required**

**options OfficeIMO.OneNote.Markdown.OneNoteMarkdownExportOptions? = null optional**

Returns

`string`

ToText 3 overloads

`public static string ToText(OneNoteElement element)` [#](#method-totext-officeimo-onenote-onenoteelement)

[OneNoteMarkdownProjection.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.OneNote.Markdown/OneNoteMarkdownProjection.cs#L7)

Projects one semantic element and its descendants to plain text.

Parameters

**element OfficeIMO.OneNote.OneNoteElement required**

Returns

`string`

`public static string ToText(OneNoteTableCell cell)` [#](#method-totext-officeimo-onenote-onenotetablecell)

[OneNoteMarkdownProjection.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.OneNote.Markdown/OneNoteMarkdownProjection.cs#L16)

Projects one table cell to plain text.

Parameters

**cell OfficeIMO.OneNote.OneNoteTableCell required**

Returns

`string`

`public static string ToText(OneNotePage page)` [#](#method-totext-officeimo-onenote-onenotepage)

[OneNoteMarkdownProjection.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.OneNote.Markdown/OneNoteMarkdownProjection.cs#L37)

Projects one page to plain text.

Parameters

**page OfficeIMO.OneNote.OneNotePage required**

Returns

`string`

## 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?`

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