Table of Contents

Class OneNoteItemExtensions

Namespace
Odotocodot.OneNote.Linq
Assembly
Odotocodot.OneNote.Linq.dll

A static class containing extension methods for the Odotocodot.OneNote.Linq.IOneNoteItem object.

public static class OneNoteItemExtensions

Inheritance

Inherited Members

Methods

FindByID(string)

Finds the Odotocodot.OneNote.Linq.IOneNoteItem with the corresponding id.

GetPageContent(OneNotePage)

Gets the content of the specified page.

GetPages(IOneNoteItem)

Returns a flattened collection of all the pages present in the source.

GetPages(IEnumerable<IOneNoteItem>)

Returns a flattened collection of all the pages present in the source.

GetRecycleBin(OneNoteNotebook, out OneNoteSectionGroup)

Get the recycle bin section group for the specified notebook if it exists.

IsInRecycleBin(IOneNoteItem)

Returns a value that indicates whether the item is in or is a recycle bin.

ItemEquals<T>(T, T)

Checks if two Odotocodot.OneNote.Linq.IOneNoteItems are equal in OneNote.
Shorthand for comparing the ID of OneNote hierarchy items. E.g.

if(left.ID == right.ID)
{
    Console.WriteLine("Equal")
}
OpenInOneNote(IOneNoteItem)

Opens the item in OneNote (creates a new OneNote window if one is not currently open).

Sync(IOneNoteItem)

Forces OneNote to sync the item.

Traverse(IOneNoteItem)

Returns a flattened collection of OneNote items, that contains the children of every OneNote item from the source.

Traverse(IOneNoteItem, Func<IOneNoteItem, bool>)

Returns a filtered flattened collection of OneNote items, that contains the children of every OneNote item from the source.
Only items that successfully pass the predicate are returned.

Traverse(IEnumerable<IOneNoteItem>)

Returns a flattened collection of OneNote items, that contains the children of every OneNote item from the source.

Traverse(IEnumerable<IOneNoteItem>, Func<IOneNoteItem, bool>)

Returns a filtered flattened collection of OneNote items, that contains the children of every OneNote item from the source.
Only items that successfully pass the predicate are returned.