Table of Contents

Class Section

Namespace
LinqToOneNote
Assembly
LinqToOneNote.dll

Represents a section in OneNote.

public class Section : OneNoteItem, INameInvalidCharacters, IHasIsInRecycleBin, IHasPath, IHasColor, IDeletable, IOneNoteItem, INavigable
Inheritance
OneNoteItem
Section
Implements
Inherited Members
Extension Methods

Properties

Children

The direct children of the section, containing its pages. Use Pages for a strongly typed collection.

public IReadOnlyList<IOneNoteItem> Children { get; }

Property Value

IReadOnlyList<IOneNoteItem>

Color

The color of the section.

public Color? Color { get; }

Property Value

Color?

Encrypted

Indicates whether the section is encrypted.

public bool Encrypted { get; }

Property Value

bool
See Also

Id

The id of the OneNote hierarchy item.

public string Id { get; }

Property Value

string

InvalidCharacters

An array containing the characters that are not allowed in a section name.
These are: \ / * ? " | < > : % # &

public static IReadOnlyList<char> InvalidCharacters { get; }

Property Value

IReadOnlyList<char>
See Also
IsValidName<THierarchyItem>(string)

IsDeletedPages

Indicates whether this section is a special section that contains all the recently deleted pages in this section's notebook.

public bool IsDeletedPages { get; }

Property Value

bool
See Also

IsInRecycleBin

Indicates whether the section is in recycle bin.

public bool IsInRecycleBin { get; }

Property Value

bool
See Also

IsUnread

Indicates whether the OneNote hierarchy item has unread information.

public bool IsUnread { get; }

Property Value

bool

LastModified

The time when the OneNote hierarchy item was last modified.

public DateTime LastModified { get; }

Property Value

DateTime

Locked

Indicates whether an encrypted section has been unlocked allowing access, otherwise false.

public bool Locked { get; }

Property Value

bool
See Also

Name

The name of the OneNote hierarchy item.

public string Name { get; }

Property Value

string

Pages

The collection of pages within this section, equal to Children for a section.

public IReadOnlyList<Page> Pages { get; }

Property Value

IReadOnlyList<Page>

Parent

The parent notebook or section group of the section.

public INotebookOrSectionGroup Parent { get; }

Property Value

INotebookOrSectionGroup

Path

The full path to the section.

public string Path { get; }

Property Value

string