Table of Contents

Method CreateSectionGroup

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

CreateSectionGroup(OneNoteSectionGroup, string, bool)

Creates a section group with a title equal to name located in the specified parent section group.

public static string CreateSectionGroup(OneNoteSectionGroup parent, string name, bool openImmediately)

Parameters

parent OneNoteSectionGroup

The hierarchy item to create the section group in.

name string

The name of the new section group.

openImmediately bool

Whether to open the newly created section group in OneNote immediately.

Returns

string

The Odotocodot.OneNote.Linq.OneNoteSectionGroup.ID of the newly created section group.

Exceptions

ArgumentException

Thrown if the name is not a valid section group name.

See Also

CreateSectionGroup(OneNoteNotebook, string, bool)

Creates a section group with a title equal to name located in the specified parent notebook.

public static string CreateSectionGroup(OneNoteNotebook parent, string name, bool openImmediately)

Parameters

parent OneNoteNotebook

The hierarchy item to create the section group in.

name string

The name of the new section group.

openImmediately bool

Whether to open the newly created section group in OneNote immediately.

Returns

string

Exceptions

ArgumentException

Thrown if the name is not a valid section group name.