Method CreateSection
- Namespace
- Odotocodot.OneNote.Linq
- Assembly
- Odotocodot.OneNote.Linq.dll
CreateSection(OneNoteSectionGroup, string, bool)
Creates a section with a title equal to name
located in the specified parent
section group.
public static string CreateSection(OneNoteSectionGroup parent, string name, bool openImmediately)
Parameters
parent
OneNoteSectionGroup-
The hierarchy item to create the section in.
name
string-
The name of the new section.
openImmediately
bool-
Whether to open the newly created section in OneNote immediately.
Returns
- string
-
The Odotocodot.OneNote.Linq.OneNoteSection.ID of the newly created section.
Exceptions
- ArgumentException
-
Thrown if the
name
is not a valid section name.
See Also
CreateSection(OneNoteNotebook, string, bool)
Creates a section with a title equal to name
located in the specified parent
notebook.
public static string CreateSection(OneNoteNotebook parent, string name, bool openImmediately)
Parameters
parent
OneNoteNotebook-
The hierarchy item to create the section in.
name
string-
The name of the new section.
openImmediately
bool-
Whether to open the newly created section in OneNote immediately.
Returns
- string
-
The Odotocodot.OneNote.Linq.OneNoteSection.ID of the newly created section.
Exceptions
- ArgumentException
-
Thrown if the
name
is not a valid section name.