Class
OneNoteMarkdownProjection
OfficeIMO.OneNote.Markdown
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
- assetUriResolver System.Func<OfficeIMO.OneNote.OneNoteBinaryElement, string?>? = null
Returns
stringpublic static string ToMarkdown(OneNotePage page, int headingLevel = 1, Func<OneNoteBinaryElement, string?>? assetUriResolver = null) #Projects one page to Markdown.
Parameters
- page OfficeIMO.OneNote.OneNotePage
- headingLevel int = 1
- assetUriResolver System.Func<OfficeIMO.OneNote.OneNoteBinaryElement, string?>? = null
Returns
stringpublic static string ToMarkdown(OneNoteSection section, OneNoteMarkdownExportOptions? options = null) #Projects a section, optionally including conflict and historical pages.
Parameters
- section OfficeIMO.OneNote.OneNoteSection
- options OfficeIMO.OneNote.Markdown.OneNoteMarkdownExportOptions? = null
Returns
stringpublic static string ToMarkdown(OneNoteNotebook notebook, OneNoteMarkdownExportOptions? options = null) #Projects a notebook and its section-group hierarchy.
Parameters
- notebook OfficeIMO.OneNote.OneNoteNotebook
- options OfficeIMO.OneNote.Markdown.OneNoteMarkdownExportOptions? = null
Returns
stringToText 3 overloads
public static string ToText(OneNoteElement element) #Projects one semantic element and its descendants to plain text.
Parameters
- element OfficeIMO.OneNote.OneNoteElement
Returns
stringpublic static string ToText(OneNoteTableCell cell) #Projects one table cell to plain text.
Parameters
- cell OfficeIMO.OneNote.OneNoteTableCell
Returns
stringpublic static string ToText(OneNotePage page) #Projects one page to plain text.
Parameters
- page OfficeIMO.OneNote.OneNotePage
Returns
string