Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 2.13 KB

README.md

File metadata and controls

47 lines (30 loc) · 2.13 KB

logo LINQ to OneNote logo mini

A helper library for dealing with the OneNote Interop API. Originally made for Flow.Launcher.Plugin.OneNote.

Installation

Get the library from NuGet here:

dotnet add package Odotocodot.OneNote.Linq

Usage

Visit the API Reference to see the full API, or visit the Flow Launcher plugin to see it in action.
To see an outline of the library view the class diagram.

⭐ See the documentation for more information and examples! ⭐

Quick Start

The main entry point of the library is the static class OneNoteApplication which has a collection of methods that interact with your OneNote installation.

Below is quick example on using the library to search your OneNote pages.

//Search pages that have "hello there" in the title or content.
IEnumerable<OneNotePage> pages = OneNoteApplication.FindPages("hello there");

OneNotePage page = pages.FirstOrDefault();

Console.WriteLine(page.Name);

page.OpenInOneNote();

Most functions return an IEnumerable allowing for easy use with LINQ.

Inspired By