Tutorial

Getting Started with Macros

Macro Editor

User Interface

Menus and Toolbar

Editing Macro Statements

Expression Editor

Macro Debugging

How To

Using variables

Finding and modifying objects

Creating new page content

Asking for user input

Storing persistent data

Using binary data

Sorting objects

Macro menus

Bulleted and numbered lists

Sample Macros

Concepts

Expressions

Objects

Properties

Variables

Data Types

Arrays

Functions

Literals

Operators

Comments

Last updated on: March 19, 2023
Also available as a single HTML file

Onetastic Macro Documentation > Hierarchy Objects > SectionGroup

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

For

ForEach

If

Else If

Else

Switch

Case

Default

While

Expression

Comment

Break

Continue

Return

Hierarchy Objects

NotebookRoot

Notebook

SectionGroup

Section

Page

Page Objects

Title

Outline

Table

Column

Row

Cell

Paragraph

Text

Image

EmbeddedFile

Tag

Other Objects

DialogBox

MacroMenu

Window

Functions

Array Functions

Color Functions

Data Store Functions

Date/Time Functions

Dialog Box Functions

Macro Execution Functions

Macro Menu Functions

Object Functions

String Functions

Window Functions