Tutorial

Getting Started with Macros

Macro Editor

User Interface

Editing Macro Statements

Expression Editor

How To

Using variables

Finding and modifying objects

Creating new page content

Asking for user input

Sorting objects

Macro Logging

Sample Macros

Concepts

Expressions

Objects

Properties

Variables

Data Types

Arrays

Functions

Literals

Operators

Comments

SectionGroup Object

Description

Represents a section group in OneNote. The current SectionGroup can be obtained by calling GetCurrentSectionGroup function.

Hierarchical Structure

SectionGroup objects can be found under following objects: Notebook SectionGroup

SectionGroup objects can contain following objects: SectionGroup Section

Creating SectionGroup Objects

SectionGroup objects can be inserted directly under following objects: Notebook SectionGroup

Properties

Name Type Access Description
hyperlink String read-only A hyperlink that points to this SectionGroup.
id String read-only The unique identifier of this SectionGroup.
isCurrentlyViewed Bool read-only Whether this SectionGroup is currently being viewed by the user in OneNote or not.
isInRecycleBin Bool read-only Whether this SectionGroup is in the notebook recycle bin or not. Filter by this property if you want to exclude SectionGroups in recycle bin.
isRecycleBin Bool read-only Whether this SectionGroup is the recycle bin for the notebook.
isUnread Bool read-write Whether this SectionGroup is unread or not.
lastModifiedTime DateTime read-write The date and time of the last modification to this SectionGroup.
name String read-write The name of this SectionGroup.
path String read-only The physical file path of this SectionGroup.
sectionCount Numeric read-only The number of sections in this SectionGroup.
sectionGroupCount Numeric read-only The number of section groups in this SectionGroup.
sectionGroups Array<SectionGroup> read-only The list of section groups directly in this SectionGroup.
sections Array<Section> read-only The list of sections directly in this SectionGroup.
type ObjectType read-only Type of this object. Always has the value of "SectionGroup".

Reference

Statements

ForEach

If

Else

While

Expression

Comment

Break

Continue

Hierarchy Objects

NotebookRoot

Notebook

SectionGroup

Section

Page

Page Objects

Title

Outline

Table

Column

Row

Cell

Paragraph

Text

Image

EmbeddedFile

Tag

Other Objects

DialogBox

Functions

Array Functions

Date/Time Functions

Dialog Box Functions

Macro Execution Functions

Object Functions

String Functions