Class Section
- Namespace
- LinqToOneNote
- Assembly
- LinqToOneNote.dll
Represents a section in OneNote.
public class Section : OneNoteItem, INameInvalidCharacters, IHasIsInRecycleBin, IHasPath, IHasColor, IDeletable, IOneNoteItem, INavigable
- Inheritance
-
OneNoteItemSection
- 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
Color
The color of the section.
public Color? Color { get; }
Property Value
Encrypted
Indicates whether the section is encrypted.
public bool Encrypted { get; }
Property Value
- See Also
Id
The id of the OneNote hierarchy item.
public string Id { get; }
Property Value
InvalidCharacters
An array containing the characters that are not allowed in a section name.
These are: \ / * ? " | < > : % # &
public static IReadOnlyList<char> InvalidCharacters { get; }
Property Value
- 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
- See Also
IsInRecycleBin
Indicates whether the section is in recycle bin.
public bool IsInRecycleBin { get; }
Property Value
- See Also
IsUnread
Indicates whether the OneNote hierarchy item has unread information.
public bool IsUnread { get; }
Property Value
LastModified
The time when the OneNote hierarchy item was last modified.
public DateTime LastModified { get; }
Property Value
Locked
Indicates whether an encrypted section has been unlocked allowing access, otherwise false.
public bool Locked { get; }
Property Value
- See Also
Name
The name of the OneNote hierarchy item.
public string Name { get; }
Property Value
Pages
The collection of pages within this section, equal to Children for a section.
public IReadOnlyList<Page> Pages { get; }
Property Value
Parent
The parent notebook or section group of the section.
public INotebookOrSectionGroup Parent { get; }
Property Value
Path
The full path to the section.
public string Path { get; }