Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OneNoteMarkdownProjection

OfficeIMO.OneNote.Markdown

Namespace
OfficeIMO.OneNote.Markdown
Assembly
OfficeIMO.OneNote.Markdown
Source revision
ba882f6b0d07 with working tree changes
Modifiers
static

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

Inheritance

  • object
  • OneNoteMarkdownProjection

Methods

ToMarkdown 4 overloads
public static string ToMarkdown(OneNoteElement element, Func<OneNoteBinaryElement, string?>? assetUriResolver = null) #

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) #

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) #

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) #

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) #

Projects one semantic element and its descendants to plain text.

Parameters

element OfficeIMO.OneNote.OneNoteElement required

Returns

string
public static string ToText(OneNoteTableCell cell) #

Projects one table cell to plain text.

Parameters

cell OfficeIMO.OneNote.OneNoteTableCell required

Returns

string
public static string ToText(OneNotePage page) #

Projects one page to plain text.

Parameters

page OfficeIMO.OneNote.OneNotePage required

Returns

string