Tutorial

Getting Started with Macros

Macro Editor

User Interface

Menus and Toolbar

Editing Macros

Macro Debugging

How To

Using variables

Finding and modifying objects

Creating new page content

Copying and moving objects

Asking for user input

Storing persistent data

Using binary data

Sorting objects

Macro menus

Bulleted and numbered lists

Accessing the file system

Accessing the clipboard

Sample Macros

Concepts

Code Structure

Expressions

Objects

Properties

Variables

Data Types

Arrays

Functions

Literals

Operators

Comments

Last updated on: October 21, 2026
Also available as a single HTML file

Onetastic Macro Documentation > Page Objects > EmbeddedContent

EmbeddedContent Object

Description

Represents embedded content (like YouTube videos or Loop components) in a OneNote page. This object requires OneNote 2026 (Version 2610, Build 16.0.20527.20000) or above.

Hierarchical Structure

EmbeddedContent objects can be found under following objects: Paragraph Page

Creating EmbeddedContent Objects

EmbeddedContent objects can be inserted directly under following objects: Outline Cell Page

Properties

Name Type Access Description
height Numeric read-write The height of this EmbeddedContent in points.
lastModifiedTime DateTime read-write The date and time of last modification on this EmbeddedContent.
objectId String read-write The unique identifier of this EmbeddedContent.
selection Selection read-write Whether this EmbeddedContent is fully or partially selected or not.
sizeSetByUser Bool read-write Whether the dimensions of this EmbeddedContent is manually set by the user (by dragging a handle on the object). Objects whose dimensions are set by the user will retain that size regardless of the size of their containers.
src String read-write The source URL for this EmbeddedContent.
tags Array<Tag> read-only List of tags associated with this EmbeddedContent.
type ObjectType read-only Type of this object. Always has the value of "EmbeddedContent".
width Numeric read-write The width of this EmbeddedContent in points.
x Numeric read-write The horizontal position of this EmbeddedContent on the page in points.
y Numeric read-write The vertical position of this EmbeddedContent on the page in points.
z Numeric read-write The z-order of this EmbeddedContent on the page. Objects with higher z-order will show up in front of objects with lower z-orders.

Deprecated Properties

Following properties are deprecated. Do not use these in new macros. See descriptions below on what to use instead.

Name Type Access Description
tagCompleted Bool read-write Whether the first tag associated with this EmbeddedContent is completed (checked) or not. This property is deprecated. Use tags property instead.
tagCompletionDate DateTime read-write The date and time of completion of the first tag associated with this EmbeddedContent. This property is deprecated. Use tags property instead.
tagCreationDate DateTime read-write The date and time of creation of the first tag associated with this EmbeddedContent. This property is deprecated. Use tags property instead.
tagDisabled Bool read-write Whether the first tag associated with this EmbeddedContent is disabled (dimmed) or not. This property is deprecated. Use tags property instead.
tagFontColor Color read-only The font color for the first tag associated with this EmbeddedContent for tags that use formatting instead of a symbol. This property is deprecated. Use tags property instead.
tagHighlightColor Color read-only The highlight color for the first tag associated with this EmbeddedContent for tags that use formatting instead of a symbol. This property is deprecated. Use tags property instead.
tagName String read-only The name of the first tag associated with this EmbeddedContent. This property is deprecated. Use tags property instead.
tagSymbol Numeric read-only The symbol used for the first tag associated with this EmbeddedContent. This property is deprecated. Use tags property instead.
tagType Numeric read-only The type of the first tag associated with this EmbeddedContent. This property is deprecated. Use tags property instead.

Reference

Statements

Hierarchy Objects

Page Objects

Other Objects

Functions

Array Functions

Clipboard Functions

Data Store Functions

Data Type Specific Functions

Date/Time Functions

Dialog Box Functions

File System Functions

Macro Execution Functions

Macro Menu Functions

Object Functions

Special Functions

String Functions

Window Functions